$IncludeConfig diag-common.conf

module(load="../plugins/imtcp/.libs/imtcp")

template(name="outfmt" type="string" string="%msg:F,58:2%\n")

input(type="imtcp" port="13514")

if $msg contains "msgnum" then
	action(type="omfile" template="outfmt" file="rsyslog.out.log")
