瀏覽代碼

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

tags/v0.13.0
Michael Schmitt 2 年之前
父節點
當前提交
cd4cd1d670
No account linked to committer's email address
共有 1 個文件被更改,包括 16 次插入0 次删除
  1. +16
    -0
      pillar.example

+ 16
- 0
pillar.example 查看文件

@@ -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{

Loading…
取消
儲存