aboutsummaryrefslogtreecommitdiffstats
path: root/community/mongodb/mongodb.logrotate
blob: f95a438b5b2c7114d05ea6228840939476e4cf0a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
# Default log rotation / compression keeps 1 year of logs.
/var/log/mongodb/*.log {
	daily
	rotate 365
	dateext
	copytruncate
	delaycompress
	compress
	notifempty
	extension gz
	sharedscripts
	missingok
}