Add `rsyslog` config for `nomad`.
This commit is contained in:
parent
9e6b05fbab
commit
dffb57e2fc
|
@ -0,0 +1,7 @@
|
||||||
|
# Log kernel generated promtail log messages to file
|
||||||
|
:syslogtag,contains,"nomad" /var/log/nomad.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
|
|
@ -91,3 +91,15 @@ end
|
||||||
service 'promtail-nomad' do
|
service 'promtail-nomad' do
|
||||||
action [ :enable, :restart ]
|
action [ :enable, :restart ]
|
||||||
end
|
end
|
||||||
|
|
||||||
|
remote_file '/etc/rsyslog.d/30-nomad.conf' do
|
||||||
|
owner 'root'
|
||||||
|
group 'root'
|
||||||
|
mode '644'
|
||||||
|
|
||||||
|
notifies :restart, 'service[rsyslog]'
|
||||||
|
end
|
||||||
|
|
||||||
|
service 'rsyslog' do
|
||||||
|
action [ :nothing ]
|
||||||
|
end
|
||||||
|
|
Loading…
Reference in New Issue