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

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

set $.replaced_msg = wrap("foo says" & $msg, "bc" & "def" & "bc", "ES" & "C");

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