[SERVER-31938] How can we limit the size of MongoDB log file on Windows OS. Created: 09/Nov/17  Updated: 07/Dec/17  Resolved: 15/Nov/17

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Question Priority: Major - P3
Reporter: Sumit Assignee: Mark Agarunov
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Production


Attachments: JPEG File MongoDB-Config.jpg    
Participants:

 Description   

What is the option to set the size of MongoDB log file. We want to set it to 10MB and should rotate if more than10MB. Attached is the config file that we are using.



 Comments   
Comment by Mark Agarunov [ 15/Nov/17 ]

Hello sumit.jain@iongroup.com,

Thank you for the report. MongoDB's log rotation functions do not have an option to specify a size, however this can be achieved on the system outside of MongoDB using something like logrotate.

Please note that SERVER project is for reporting bugs or feature suggestions for the MongoDB server. For MongoDB-related support discussion please post on the mongodb-user group or Stack Overflow with the mongodb tag. A question like this involving more discussion would be best posted on the mongodb-user group.

Thanks,
Mark

Comment by Sumit [ 13/Nov/17 ]

Team,

Any update on this?

Comment by Sumit [ 10/Nov/17 ]

Can someone respond to this please?

Generated at Thu Feb 08 04:28:39 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.