Deploy `logrotate` config for `webhook`.

This commit is contained in:
Kazuhiro MUSASHI 2023-02-21 23:46:09 +09:00
parent da0f63ab5e
commit e7e720a04a
2 changed files with 20 additions and 0 deletions

View File

@ -23,3 +23,10 @@ end
service 'rsyslog' do
action :nothing
end
# Deploy `logrotate` config for `Alert Manager Webhook Logger`:
remote_file '/etc/logrotate.d/webhook' do
owner 'root'
group 'root'
mode '0644'
end

View File

@ -0,0 +1,13 @@
/var/log/alertmanager-webhook.log
{
rotate 4
weekly
missingok
notifempty
compress
delaycompress
sharedscripts
postrotate
/usr/lib/rsyslog/rsyslog-rotate
endscript
}