rsyslog/tests/testsuites/tcp_forwarding_dflt_tpl.conf

11 lines
340 B
Plaintext

$IncludeConfig diag-common.conf
$MainMsgQueueTimeoutShutdown 10000
template(name="outfmt" type="string" string="%msg:F,58:2%\n")
#this is what we want to test: setting the default template
module(load="builtin:omfwd" template="outfmt")
if $msg contains "msgnum:" then
action(type="omfwd" target="127.0.0.1" port="13514" protocol="tcp")