$IncludeConfig diag-common.conf

module(load="../plugins/imtcp/.libs/imtcp")
$MainMsgQueueTimeoutShutdown 10000

input(type="imtcp" port="13514" ruleset="real")
input(type="imtcp" port="13515" ruleset="empty")

$template outfmt,"%msg:F,58:2%\n"
$template dynfile,"rsyslog.out.log" # trick to use relative path names!

ruleset(name="empty") {
}

ruleset(name="real") {
	action(type="omfile" file="rsyslog.out.log" template="outfmt")
}
