rsyslog/tests/testsuites/tcp_forwarding_tpl.conf
Rainer Gerhards ad1b93df8a bugfix: omfwd did not properly support "template" parameter
We also added a testbench test to check for this in the future. That
in turn required new testbench tools.
2012-10-30 13:06:20 +01:00

8 lines
257 B
Plaintext

$IncludeConfig diag-common.conf
$MainMsgQueueTimeoutShutdown 10000
template(name="outfmt" type="string" string="%msg:F,58:2%\n")
if $msg contains "msgnum:" then
action(type="omfwd" template="outfmt"
target="127.0.0.1" port="13514" protocol="tcp")