-
Type:
Improvement
-
Resolution: Duplicate
-
Priority:
Major - P3
-
Affects Version/s: None
-
Component/s: Packaging
-
None
-
Server Development Platform
-
None
-
None
-
None
-
None
-
None
-
None
-
None
Spin off from SERVER-5325. Simple log rotate example for 3.4+:
/var/log/mongodb/*.log {
daily
missingok
rotate 5
compress
dateext
delaycompress
sharedscripts
postrotate
/usr/bin/kill -SIGUSR1 `/usr/bin/cat /var/run/mongod.pid`
endscript
notifempty
}
The default mongod.conf should also be altered to set log rotate behavior to "reopen" and pidfile set to /var/run/mongod.pid
- depends on
-
SERVER-5325 Rolling Log Files
-
- Closed
-
- duplicates
-
SERVER-1865 Official Linux packages don't set up logrotate
-
- Closed
-