mirror of
https://github.com/rsyslog/rsyslog.git
synced 2025-12-20 13:10:43 +01:00
20 lines
623 B
Plaintext
20 lines
623 B
Plaintext
$IncludeConfig diag-common.conf
|
|
|
|
module(load="../plugins/imtcp/.libs/imtcp")
|
|
input(type="imtcp" port="13514")
|
|
|
|
template(name="interim" type="string" string="%$!tree!here!nbr%")
|
|
template(name="outfmt" type="string" string="%$.interim%\n")
|
|
template(name="all-json" type="string" string="%$!%\n")
|
|
|
|
if $msg contains "msgnum:" then {
|
|
set $!tree!here!nbr = field($msg, 58, 2);
|
|
action(type="omfile" file="rsyslog2.out.log" template="all-json"
|
|
queue.type="linkedList")
|
|
|
|
set $.interim = $!all-json;
|
|
unset $!tree!here!nbr;
|
|
action(type="omfile" file="rsyslog.out.log" template="outfmt"
|
|
queue.type="fixedArray")
|
|
}
|