From 77374a4bfded90403a51618ddfd8c98d33aa8fac Mon Sep 17 00:00:00 2001 From: Michael Schmitt Date: Thu, 13 Jan 2022 13:41:52 -0700 Subject: [PATCH] feat(hourly): add hourly job def to pillar.example --- pillar.example | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/pillar.example b/pillar.example index 05059d8..648a3ee 100644 --- a/pillar.example +++ b/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 + - '[ -r /var/run/nginx_high_traf.pid ] && kill -USR1 $(cat /var/run/nginx_high_traf.pid)' + - endscript nginx: contents: | /var/log/nginx/*.log{