Deploy `rsyslog` config for `alert manager`.

This commit is contained in:
Kazuhiro MUSASHI 2023-02-21 23:44:49 +09:00
parent 7889da9ceb
commit da0f63ab5e
2 changed files with 19 additions and 0 deletions

View File

@ -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

View File

@ -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