rsyslog/tests/testsuites/global_vars.conf
2013-11-18 12:56:45 +01:00

18 lines
481 B
Plaintext

$IncludeConfig diag-common.conf
$MainMsgQueueTimeoutShutdown 10000
module(load="../plugins/imtcp/.libs/imtcp")
input(type="imtcp" port="13514")
template(name="outfmt" type="string" string="%$/msgnum%\n")
template(name="dynfile" type="string" string="rsyslog.out.log") /* trick to use relative path names! */
if $/msgnum == "" then
set $/msgnum = 0;
if $msg contains "msgnum:" then {
action(type="omfile" dynaFile="dynfile" template="outfmt")
set $/msgnum = $/msgnum + 1;
}