diff options
Diffstat (limited to 'linux/conf/logrotate.d')
-rw-r--r-- | linux/conf/logrotate.d/fail2ban | 5 | ||||
-rw-r--r-- | linux/conf/logrotate.d/letsencrypt | 7 | ||||
-rw-r--r-- | linux/conf/logrotate.d/lynis | 10 | ||||
-rw-r--r-- | linux/conf/logrotate.d/ntp | 5 | ||||
-rw-r--r-- | linux/conf/logrotate.d/postgresql | 10 | ||||
-rw-r--r-- | linux/conf/logrotate.d/samhain | 24 | ||||
-rw-r--r-- | linux/conf/logrotate.d/shorewall | 11 | ||||
-rw-r--r-- | linux/conf/logrotate.d/shorewall6 | 5 |
8 files changed, 77 insertions, 0 deletions
diff --git a/linux/conf/logrotate.d/fail2ban b/linux/conf/logrotate.d/fail2ban new file mode 100644 index 0000000..c2dc4cd --- /dev/null +++ b/linux/conf/logrotate.d/fail2ban @@ -0,0 +1,5 @@ +/var/log/fail2ban.log { + weekly + create 0644 root root + rotate 5 + } diff --git a/linux/conf/logrotate.d/letsencrypt b/linux/conf/logrotate.d/letsencrypt new file mode 100644 index 0000000..ce73ebc --- /dev/null +++ b/linux/conf/logrotate.d/letsencrypt @@ -0,0 +1,7 @@ +/var/log/letsencrypt/*.log { + # uncomment this if you want your log files compressed + delaycompress + compress + olddir /var/log/old/letsencrypt + notifempty +} diff --git a/linux/conf/logrotate.d/lynis b/linux/conf/logrotate.d/lynis new file mode 100644 index 0000000..8cf9181 --- /dev/null +++ b/linux/conf/logrotate.d/lynis @@ -0,0 +1,10 @@ +/var/log/lynis.log { + rotate 5 + monthly + create 0644 root root +} +/var/log/lynis-report.dat { + rotate 5 + monthly + create 0644 root root +} diff --git a/linux/conf/logrotate.d/ntp b/linux/conf/logrotate.d/ntp new file mode 100644 index 0000000..c46b590 --- /dev/null +++ b/linux/conf/logrotate.d/ntp @@ -0,0 +1,5 @@ +/var/log/ntp.log { + weekly + create 0644 root root + rotate 5 +} diff --git a/linux/conf/logrotate.d/postgresql b/linux/conf/logrotate.d/postgresql new file mode 100644 index 0000000..8c16bfa --- /dev/null +++ b/linux/conf/logrotate.d/postgresql @@ -0,0 +1,10 @@ +# this log is only used by postgresql at startup +# before start using syslog so there is no need +# to reload syslog-ng or syslog-ng +/var/log/postgresql { + # uncomment this if you want your log files compressed + delaycompress + compress + notifempty + create 664 postgres postgres +} diff --git a/linux/conf/logrotate.d/samhain b/linux/conf/logrotate.d/samhain new file mode 100644 index 0000000..d60f810 --- /dev/null +++ b/linux/conf/logrotate.d/samhain @@ -0,0 +1,24 @@ +/var/log/samhain.log { + weekly + rotate 52 + nocreate + missingok + compress + + prerotate + if test -f /var/run/samhain.pid; then \ + PIN=`cat /var/run/samhain.pid`; \ + /bin/kill -TTIN $PIN; \ + sleep 1; \ + AA=0; \ + while test "x$AA" != "x120"; do \ + AA=$(( AA + 1 )); \ + if test -f /var/log/samhain.log.lock; then \ + sleep 1; \ + else \ + break; \ + fi \ + done; \ + fi + endscript +} diff --git a/linux/conf/logrotate.d/shorewall b/linux/conf/logrotate.d/shorewall new file mode 100644 index 0000000..a7dffdf --- /dev/null +++ b/linux/conf/logrotate.d/shorewall @@ -0,0 +1,11 @@ +/var/log/shorewall-init.log { + missingok + notifempty + create 0600 root root + sharedscripts + postrotate + if [ -f /var/run/syslog-ng.pid ]; then \ + kill -HUP `cat /var/run/syslog-ng.pid`; \ + fi; + endscript +} diff --git a/linux/conf/logrotate.d/shorewall6 b/linux/conf/logrotate.d/shorewall6 new file mode 100644 index 0000000..ee5e246 --- /dev/null +++ b/linux/conf/logrotate.d/shorewall6 @@ -0,0 +1,5 @@ +/var/log/shorewall6-init.log { + missingok + notifempty + create 0600 root root +} |