$IncludeConfig diag-common.conf
module(load="../plugins/mmjsonparse/.libs/mmjsonparse")
module(load="../plugins/imtcp/.libs/imtcp")
input(type="imtcp" port="13514")

template(name="outfmt" type="string" string="%$.data%\n")

action(type="mmjsonparse")
foreach ($.data in $!array) do {
	if not ($.data == "") then
		action(type="omfile" file="rsyslog.out.log" template="outfmt")
}
