Page Menu
Home
Miraheze
Search
Configure Global Search
Log In
Paste
P387
syslog-ng log to local file
Active
Public
Actions
Authored by
Southparkfan
on Feb 24 2021, 22:04.
Edit Paste
Archive Paste
View Raw File
Subscribe
Mute Notifications
Award Token
Flag For Later
Tags
None
Subscribers
None
syslog_ng::filter { 'f_file_puppet-agent':
params => {
'type' => 'program',
'options' => [
'"^puppet-agent$"'
]
}
} ->
syslog_ng::destination { 'd_file_puppet-agent':
params => {
'type' => 'file',
'options' => [
'"/var/log/puppet/puppet-agent.log"'
]
}
} ->
syslog_ng::log { 's_src_udp_local to d_graylog_syslog_tls':
params => [
{
'source' => 's_src_system',
},
{
'filter' => 'f_file_puppet-agent',
},
{
'destination' => 'd_file_puppet-agent',
},
],
}
Event Timeline
Southparkfan
created this paste.
Feb 24 2021, 22:04
2021-02-24 22:04:18 (UTC+0)
Southparkfan
edited the content of this paste.
(Show Details)
Southparkfan
edited the content of this paste.
(Show Details)
Log In to Comment