ansible/roles/notifs/backend/files/syslog-logrotate
Kevin Fenzi 2d34c72c58 Override the default syslog logrotate on notifs-backend01 as its messaages log grows
very very large over time. Rotate it daily, compress with xz and only keep 7 days.
Can adjust from there.
2015-06-04 20:53:39 +00:00

20 lines
362 B
Text

/var/log/cron
/var/log/maillog
/var/log/messages
/var/log/secure
/var/log/spooler
{
sharedscripts
postrotate
/bin/kill -HUP `cat /var/run/syslogd.pid 2> /dev/null` 2> /dev/null || true
endscript
daily
rotate 7
missingok
ifempty
compress
compresscmd /usr/bin/xz
uncompresscmd /usr/bin/xz
compressext .xz
dateext
}