File mongodb.logrotate of Package mongodb

/var/log/mongodb/*.log {
       weekly
       rotate 10
       su mongodb mongodb
       copytruncate
       delaycompress
       compress
       notifempty
       missingok
}