]> Frank Brehm's Git Trees - salt/states.git/commitdiff
Adding basic/files/rsyslog.logrotate.conf
authorFrank Brehm <frank@brehm-online.com>
Thu, 25 Feb 2016 18:11:36 +0000 (19:11 +0100)
committerFrank Brehm <frank@brehm-online.com>
Thu, 25 Feb 2016 18:11:36 +0000 (19:11 +0100)
basic/files/rsyslog.logrotate.conf [new file with mode: 0644]

diff --git a/basic/files/rsyslog.logrotate.conf b/basic/files/rsyslog.logrotate.conf
new file mode 100644 (file)
index 0000000..c86adeb
--- /dev/null
@@ -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