cureetly we are not having log rotater in my mongod.conf file.my version is mongodb3.4.3 how can i give log rotater in my mongod.conf file please check my conf file and give me suggestion where to add the log rotator in my conf fileand what to add
MongoDB – How to Automatically Rotate Logs in mongod.conf
mongodb
Related Question
- Mongodb – Steps to setup mongo replica set
- Mongodb – Unable to start the mongo services on debian server
- Mongodb – How to do with mongodb security installed in aws ec2
- MongoDB – Resolving Authentication Failures with mongod.conf
- Mongodb – How to correct Failed global > initialization: FileNotOpen
- Mongodb – UserNotFound mongodb error
Best Answer
If you are using *nix system, you have few choices. You can use logrotate service and send SIGUSR1 signal to mongod/mongos process. Or you can change your config
systemLog.logRotate: rename
and again send SIGUSR1.To rotate log you can give command
db.adminCommand( { logRotate : 1 } )
too.How you do it on the windows side, that I don't know.