1 2 3 4
$IncludeConfig diag-common.conf $template outfmt,"%msg:F,58:2%\n" if $msg contains 'msgnum' then ./rsyslog.out.log;outfmt