From: Frank Brehm Date: Thu, 25 Feb 2016 18:11:36 +0000 (+0100) Subject: Adding basic/files/rsyslog.logrotate.conf X-Git-Url: https://git.uhu-banane.net/?a=commitdiff_plain;h=51716dacdac170c59883a1e18d00bee710520e90;p=salt%2Fstates.git Adding basic/files/rsyslog.logrotate.conf --- diff --git a/basic/files/rsyslog.logrotate.conf b/basic/files/rsyslog.logrotate.conf new file mode 100644 index 0000000..c86adeb --- /dev/null +++ b/basic/files/rsyslog.logrotate.conf @@ -0,0 +1,59 @@ +/var/log/syslog /var/log/messages { + rotate 7 + daily + missingok + notifempty + compress + delaycompress + dateext + size 4M + olddir /var/log/.old + postrotate + invoke-rc.d rsyslog rotate > /dev/null + endscript +} + +/var/log/mail.info +/var/log/mail.warn +/var/log/mail.err +/var/log/mail.log +/var/log/daemon.log +/var/log/kern.log +/var/log/auth.log +/var/log/user.log +/var/log/lpr.log +/var/log/cron.log +/var/log/debug +{ + rotate 4 + weekly + missingok + notifempty + compress + delaycompress + dateext + size 4M + olddir /var/log/.old + sharedscripts + postrotate + invoke-rc.d rsyslog rotate > /dev/null + endscript +} + +/var/log/syslog.d/*.log { + rotate 10 + weekly + missingok + notifempty + size 4M + delaycompress + dateext + compress + olddir /var/log/syslog.d/.old + sharedscripts + postrotate + reload rsyslog >/dev/null 2>&1 || true + endscript +} + +# vim: ts=4 filetype=conf et