From cd4cd1d670b1a83b6a58dcaa96bd0db6ce380a2e 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..ca4fcb7 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 + - 'kill -USR1 $(cat /var/run/nginx_high_traf.pid)' + - endscript nginx: contents: | /var/log/nginx/*.log{