2015-01-21 05:00:07 -05:00
|
|
|
# vim: sts=2 ts=2 sw=2 et ai
|
2018-07-06 09:07:39 -04:00
|
|
|
|
2015-01-01 13:57:08 -05:00
|
|
|
logrotate:
|
2018-07-06 09:07:39 -04:00
|
|
|
# default OS values can be overridden in 'lookup' dict
|
|
|
|
#lookup:
|
|
|
|
#pkg: logrotate
|
|
|
|
#service: crond
|
2017-02-14 08:34:35 -05:00
|
|
|
default_config:
|
2017-03-13 06:40:09 -04:00
|
|
|
weekly: True
|
|
|
|
rotate: 52
|
|
|
|
create: True
|
|
|
|
compress: True
|
|
|
|
dateext: True
|
2015-01-21 05:00:07 -05:00
|
|
|
jobs:
|
2017-11-15 05:18:45 -05:00
|
|
|
/tmp/var/log/mysql/error:
|
2015-05-05 09:20:54 -04:00
|
|
|
config:
|
|
|
|
- weekly
|
|
|
|
- missingok
|
|
|
|
- rotate 52
|
|
|
|
- compress
|
|
|
|
- delaycompress
|
|
|
|
- notifempty
|
|
|
|
- create 640 root adm
|
|
|
|
- sharedscripts
|
|
|
|
mysql:
|
2016-01-26 11:53:08 -05:00
|
|
|
path:
|
|
|
|
- /tmp/var/log/mysql/*.log
|
2015-05-05 09:20:54 -04:00
|
|
|
config:
|
|
|
|
- weekly
|
|
|
|
- missingok
|
|
|
|
- rotate 52
|
|
|
|
- compress
|
|
|
|
- delaycompress
|
|
|
|
- notifempty
|
|
|
|
- create 640 root adm
|
|
|
|
- sharedscripts
|
2016-01-26 05:40:30 -05:00
|
|
|
syslog:
|
|
|
|
path:
|
|
|
|
- /var/log/cron
|
|
|
|
- /var/log/maillog
|
|
|
|
- /var/log/messages
|
|
|
|
- /var/log/secure
|
|
|
|
- /var/log/spooler
|
|
|
|
- /var/log/slapd.log
|
|
|
|
config:
|
|
|
|
- sharedscripts
|
|
|
|
- postrotate
|
|
|
|
- /bin/kill -HUP `cat /var/run/syslogd.pid 2> /dev/null` 2> /dev/null || true
|
|
|
|
- endscript
|
2018-07-12 06:44:01 -04:00
|
|
|
nginx:
|
|
|
|
contents: |
|
|
|
|
/var/log/nginx/*.log{
|
|
|
|
weekly
|
|
|
|
missingok
|
|
|
|
compress
|
|
|
|
delaycompress
|
|
|
|
notifempty
|
|
|
|
create 0640 www-data adm
|
|
|
|
sharedscripts
|
|
|
|
prerotate
|
|
|
|
if [ -d /etc/logrotate.d/httpd-prerotate ]; then \
|
|
|
|
run-parts /etc/logrotate.d/httpd-prerotate; \
|
|
|
|
fi \
|
|
|
|
endscript
|
|
|
|
postrotate
|
|
|
|
invoke-rc.d nginx rotate >/dev/null 2>&1
|
|
|
|
endscript
|
|
|
|
}
|
|
|
|
|