-
Type: Question
-
Resolution: Done
-
Priority: Major - P3
-
None
-
Affects Version/s: 4.0.4
-
Component/s: None
-
None
-
Server Triage
We have had MongoDB service running continuously for a couple of months now, and we have observed that the mongo service log size has been increased to more than 5GB. Due to which we are not able to check the log file for troubleshooting purpose. As the new log file gets created only when we restart the service, we want a way to enforce log rotation policy based on daily or log file size limit.
We have tried the solution given in below links, but still not able to resolve this issue.
https://docs.mongodb.com/manual/tutorial/rotate-log-files/
https://serverfault.com/questions/876293/mongo-forcing-a-log-rotation-on-windows
Can we get any suggestions, on this issue? Thanks in advance.