From 51716dacdac170c59883a1e18d00bee710520e90 Mon Sep 17 00:00:00 2001 From: Frank Brehm Date: Thu, 25 Feb 2016 19:11:36 +0100 Subject: [PATCH] Adding basic/files/rsyslog.logrotate.conf --- basic/files/rsyslog.logrotate.conf | 59 ++++++++++++++++++++++++++++++ 1 file changed, 59 insertions(+) create mode 100644 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 -- 2.39.5