Page MenuHomeMiraheze
Paste P387

syslog-ng log to local file
ActivePublic

Authored by Southparkfan on Feb 24 2021, 22:04.
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 edited the content of this paste. (Show Details)
Southparkfan edited the content of this paste. (Show Details)