Deploy `rsyslog` config for `alert manager`.
This commit is contained in:
parent
7889da9ceb
commit
da0f63ab5e
|
@ -11,3 +11,15 @@ service 'webhook' do
|
||||||
action [:enable, :start]
|
action [:enable, :start]
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# Deploy `rsyslog` config for `Alert Manager Webhook Logger`:
|
||||||
|
remote_file '/etc/rsyslog.d/30-webhook.conf' do
|
||||||
|
owner 'root'
|
||||||
|
group 'root'
|
||||||
|
mode '0644'
|
||||||
|
|
||||||
|
notifies :restart, 'service[rsyslog]'
|
||||||
|
end
|
||||||
|
|
||||||
|
service 'rsyslog' do
|
||||||
|
action :nothing
|
||||||
|
end
|
||||||
|
|
|
@ -0,0 +1,7 @@
|
||||||
|
# Log kernel generated digdag log messages to file
|
||||||
|
:syslogtag,contains,"webhook" /var/log/alertmanager-webhook-logger.log
|
||||||
|
|
||||||
|
# Uncomment the following to stop logging anything that matches the last rule.
|
||||||
|
# Doing this will stop logging kernel generated UFW log messages to the file
|
||||||
|
# normally containing kern.* messages (eg, /var/log/kern.log)
|
||||||
|
& stop
|
Loading…
Reference in New Issue