Deploy `logrotate` config for `webhook`.
This commit is contained in:
parent
da0f63ab5e
commit
e7e720a04a
|
@ -23,3 +23,10 @@ end
|
||||||
service 'rsyslog' do
|
service 'rsyslog' do
|
||||||
action :nothing
|
action :nothing
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# Deploy `logrotate` config for `Alert Manager Webhook Logger`:
|
||||||
|
remote_file '/etc/logrotate.d/webhook' do
|
||||||
|
owner 'root'
|
||||||
|
group 'root'
|
||||||
|
mode '0644'
|
||||||
|
end
|
||||||
|
|
|
@ -0,0 +1,13 @@
|
||||||
|
/var/log/alertmanager-webhook.log
|
||||||
|
{
|
||||||
|
rotate 4
|
||||||
|
weekly
|
||||||
|
missingok
|
||||||
|
notifempty
|
||||||
|
compress
|
||||||
|
delaycompress
|
||||||
|
sharedscripts
|
||||||
|
postrotate
|
||||||
|
/usr/lib/rsyslog/rsyslog-rotate
|
||||||
|
endscript
|
||||||
|
}
|
Loading…
Reference in New Issue