Procedure for Mongodb Logrotate The default install for Mongodb does not configure log rotation. In /etc/logrotate.d/mongod /var/log/mongodb/*.log { daily rotate 30 compress dateext