We have log append true in config file. Every day log is appended to the single log file. We are facing issue in space and we were also not able to purge the log file completely.
So we need logs file for every day, if we have space issue then we can remove the old logs.
Only thing we need to do is:
In config file make sure we have:
logappend = true
Then login to mongo shell, run the below command against the admin database.
use admin
db.runCommand({logRotate:1})
So we need logs file for every day, if we have space issue then we can remove the old logs.
Only thing we need to do is:
In config file make sure we have:
logappend = true
Then login to mongo shell, run the below command against the admin database.
use admin
db.runCommand({logRotate:1})
Comments
Post a Comment