$IncludeConfig diag-common.conf
template(name="outfmt" type="string" string="*Number is %$.number%*\n")

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

set $.number = re_extract($msg, '.* ([0-9]+)$', 0, 1, 'none');

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