$IncludeConfig diag-common.conf
template(name="outfmt" type="string" string="%$.random_no%\n")

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

set $.random_no = random(10);

action(type="omfile" file="./rsyslog.out.log" template="outfmt")
