1
0
Fork 0
mirror of synced 2024-12-21 05:31:09 -05:00

feat(hourly): add hourly job def to pillar.example

This commit is contained in:
Michael Schmitt 2022-01-13 13:41:52 -07:00
parent 7b5676b9e2
commit cd4cd1d670
No known key found for this signature in database
GPG key ID: 5145CC5841E00C15

View file

@ -48,6 +48,22 @@ logrotate:
- postrotate
- /bin/kill -HUP `cat /var/run/syslogd.pid 2> /dev/null` 2> /dev/null || true
- endscript
nginx_high_traf:
path:
- /var/log/nginx_high_traf/*.log
config:
- hourly
- missingok
- rotate {{ 30 * 24 }} # keep 1 month's worth of hourly logs
- compress
- notifempty
- dateext
- dateformat .%Y-%m-%d-%H00
- olddir /var/log/nginx_high_traf/archive
- sharedscripts
- postrotate
- 'kill -USR1 $(cat /var/run/nginx_high_traf.pid)'
- endscript
nginx:
contents: |
/var/log/nginx/*.log{