$IncludeConfig diag-common.conf

module(load="../plugins/imtcp/.libs/imtcp")
input(type="imtcp" port="13514")

if $msg contains "00000001" then
	stop

template(name="outfmt" type="string" string="%msg:F,58:2%\n")
if $msg contains "msgnum:" then
	action(type="omfile" file="rsyslog.out.log" template="outfmt")
