about summary refs log tree commit diff stats
path: root/tools/conf/etc/logrotate.conf
diff options
context:
space:
mode:
authorSilvino Silva <silvino@bk.ru>2020-02-07 03:41:45 +0000
committerSilvino Silva <silvino@bk.ru>2020-02-15 00:56:46 +0000
commita947a31ede27fdf995e0a63e766fcd68eb491426 (patch)
tree74c749814fc91a22148b637b90507c78c56e02c8 /tools/conf/etc/logrotate.conf
parentac7c572733282e49801b16531d841682e3ab1b5a (diff)
downloaddoc-a947a31ede27fdf995e0a63e766fcd68eb491426.tar.gz
System configuration update
Diffstat (limited to 'tools/conf/etc/logrotate.conf')
-rw-r--r--tools/conf/etc/logrotate.conf315
1 files changed, 249 insertions, 66 deletions
diff --git a/tools/conf/etc/logrotate.conf b/tools/conf/etc/logrotate.conf
index 896b779..636dffb 100644
--- a/tools/conf/etc/logrotate.conf
+++ b/tools/conf/etc/logrotate.conf
@@ -9,13 +9,10 @@ rotate 4
 create
 
 # uncomment this if you want your log files compressed
-compress
+#compress
 
 olddir /var/log/old
-
-notifempty
-
-maxsize 5M
+maxsize 1M
 
 # some packages can drop log rotation information into 
 # this directory
@@ -23,111 +20,297 @@ include /etc/logrotate.d
 
 # few generic files to rotate
 /var/log/wtmp {
+    monthly
     create 0644 root root
-    rotate 5
+    rotate 1
 }
 
 /var/log/btmp {
+    monthly
     create 0600 root root
-    rotate 5
+    rotate 1
 }
 
 # system-specific logs may be also be configured here.
-/var/log/faillog {
-    maxsize 5M
+/var/log/auth {
+   missingok
+   notifempty
+   compress
+   delaycompress
+   sharedscripts
+   postrotate
+      /etc/init.d/syslog-ng reload
+   endscript
 }
 
-/var/log/lastlog {
-    maxsize 5M
+/var/log/sudo {
+   missingok
+   notifempty
+   compress
+   delaycompress
+   sharedscripts
+   postrotate
+      /etc/init.d/syslog-ng reload
+   endscript
 }
 
-/var/log/auth {
-    create 0644 root root
-    rotate 5
-    sharedscripts
+/var/log/cron {
+   missingok
+   notifempty
+   compress
+   delaycompress
+   sharedscripts
+   postrotate
+      /etc/init.d/syslog-ng reload
+   endscript
+}
+
+/var/log/daemon {
+   rotate 7
+   missingok
+   notifempty
+   compress
+   delaycompress
+   sharedscripts
+   postrotate
+      /etc/init.d/syslog-ng reload
+   endscript
+}
+
+/var/log/debug {
+   missingok
+   notifempty
+   compress
+   delaycompress
+   sharedscripts
+   postrotate
+      /etc/init.d/syslog-ng reload
+   endscript
+}
+
+/var/log/error {
+   missingok
+   notifempty
+   compress
+   delaycompress
+   sharedscripts
+   postrotate
+      /etc/init.d/syslog-ng reload
+   endscript
+}
+
+/var/log/iptables {
+    # uncomment this if you want your log files compressed
+    delaycompress
+    compress
     postrotate
-    if [ -f /var/run/syslog-ng.pid ]; then \
-    	kill -HUP `cat /var/run/syslog-ng.pid`; \
-    fi;
+        /etc/rc.d/syslog-ng reload >/dev/null
     endscript
 }
 
-/var/log/cron {
-    create 0644 root root
-    rotate 5
-    sharedscripts
+/var/log/kernel {
+   missingok
+   notifempty
+   compress
+   delaycompress
+   sharedscripts
+   postrotate
+      /etc/init.d/syslog-ng reload
+   endscript
+}
+
+/var/log/lpr {
+   missingok
+   notifempty
+   compress
+   delaycompress
+   sharedscripts
+   postrotate
+      /etc/init.d/syslog-ng reload
+   endscript
+}
+
+/var/log/mail.err {
+   missingok
+   notifempty
+   compress
+   delaycompress
+   sharedscripts
+   postrotate
+      /etc/init.d/syslog-ng reload
+   endscript
+}
+
+/var/log/mail.info {
+   missingok
+   notifempty
+   compress
+   delaycompress
+   sharedscripts
+   postrotate
+      /etc/init.d/syslog-ng reload
+   endscript
+}
+
+/var/log/mail {
+   missingok
+   notifempty
+   compress
+   delaycompress
+   sharedscripts
+   postrotate
+      /etc/init.d/syslog-ng reload
+   endscript
+}
+
+/var/log/mail.warn {
+   missingok
+   notifempty
+   compress
+   delaycompress
+   sharedscripts
+   postrotate
+      /etc/init.d/syslog-ng reload
+   endscript
+}
+
+/var/log/messages {
+   missingok
+   notifempty
+   compress
+   delaycompress
+   sharedscripts
+   postrotate
+      /etc/init.d/syslog-ng reload
+   endscript
+}
+
+
+/var/log/user {
+   missingok
+   notifempty
+   compress
+   delaycompress
+   sharedscripts
+   postrotate
+      /etc/init.d/syslog-ng reload
+   endscript
+}
+
+/var/log/uucp {
+   missingok
+   notifempty
+   compress
+   delaycompress
+   sharedscripts
+   postrotate
+      /etc/init.d/syslog-ng reload
+   endscript
+}
+
+/var/log/syslog-ng {
+   rotate 7
+   daily
+   compress
+   delaycompress
+   sharedscripts
+   postrotate
+      /etc/init.d/syslog-ng reload
+   endscript
+}
+
+/var/log/dnsmasq {
+    # uncomment this if you want your log files compressed
+    delaycompress
+    compress
     postrotate
-    if [ -f /var/run/syslog-ng.pid ]; then \
-    	kill -HUP `cat /var/run/syslog-ng.pid`; \
-    fi;
+        /etc/rc.d/syslog-ng reload >/dev/null
     endscript
 }
 
-/var/log/debug {
+/var/log/pgsql {
+    # create new (empty) log files after rotating old ones
     create 0644 root root
-    rotate 5
-    sharedscripts
+    # uncomment this if you want your log files compressed
+    delaycompress
+    compress
+    notifempty
+    maxsize 5M
     postrotate
-    if [ -f /var/run/syslog-ng.pid ]; then \
-    	kill -HUP `cat /var/run/syslog-ng.pid`; \
-    fi;
+        /etc/rc.d/syslog-ng reload >/dev/null
     endscript
 }
 
-/var/log/kernel {
-    rotate 5
-    create 0644 root root
-    sharedscripts
+/var/log/git-daemon {
+    # uncomment this if you want your log files compressed
+    delaycompress
+    compress
     postrotate
-    if [ -f /var/run/syslog-ng.pid ]; then \
-    	kill -HUP `cat /var/run/syslog-ng.pid`; \
-    fi;
+        /etc/rc.d/syslog-ng reload >/dev/null
     endscript
 }
 
-/var/log/daemon {
+/var/log/gitolite {
+    # uncomment this if you want your log files compressed
+    delaycompress
+    compress
+    postrotate
+        /etc/rc.d/syslog-ng reload >/dev/null
+    endscript
+}
+
+/var/log/php-fpm {
+    # uncomment this if you want your log files compressed
+    delaycompress
     compress
-    rotate 5
-    create 644 root root
-    sharedscripts
     postrotate
-    if [ -f /var/run/syslog-ng.pid ]; then \
-    	kill -HUP `cat /var/run/syslog-ng.pid`; \
-    fi;
+        /etc/rc.d/syslog-ng reload >/dev/null
     endscript
+}
 
+/var/log/php {
+    # uncomment this if you want your log files compressed
+    delaycompress
+    compress
+    postrotate
+        /etc/rc.d/syslog-ng reload >/dev/null
+    endscript
 }
 
-/var/log/messages {
-    rotate 5
-    create 0644 root root
-    sharedscripts
+/var/log/nginx_access {
+    # uncomment this if you want your log files compressed
+    delaycompress
+    compress
     postrotate
-    if [ -f /var/run/syslog-ng.pid ]; then \
-    	kill -HUP `cat /var/run/syslog-ng.pid`; \
-    fi;
+        /etc/rc.d/syslog-ng reload >/dev/null
     endscript
 }
 
-/var/log/mail {
-    create 0644 root root
-    rotate 5
-    sharedscripts
+/var/log/nginx_error {
+    # uncomment this if you want your log files compressed
+    delaycompress
+    compress
     postrotate
-    if [ -f /var/run/syslog-ng.pid ]; then \
-    	kill -HUP `cat /var/run/syslog-ng.pid`; \
-    fi;
+        /etc/rc.d/syslog-ng reload >/dev/null
     endscript
 }
 
-/var/log/user {
-    create 0644 root root
-    rotate 5
-    sharedscripts
+/var/log/nginx/tribu_error.log {
+    # uncomment this if you want your log files compressed
+    delaycompress
+    compress
+    olddir /var/log/old/nginx
     postrotate
-    if [ -f /var/run/syslog-ng.pid ]; then \
-    	kill -HUP `cat /var/run/syslog-ng.pid`; \
-    fi;
+        /etc/rc.d/syslog-ng reload >/dev/null
     endscript
 }
 
+/var/log/nginx/tribu_access.log {
+    # uncomment this if you want your log files compressed
+    delaycompress
+    compress
+    olddir /var/log/old/nginx
+    postrotate
+        /etc/rc.d/syslog-ng reload >/dev/null
+    endscript
+}