mirror of
https://github.com/rsyslog/rsyslog.git
synced 2025-12-20 12:00:43 +01:00
15 lines
373 B
Plaintext
15 lines
373 B
Plaintext
$IncludeConfig diag-common.conf
|
|
|
|
template(name="outfmt" type="list") {
|
|
property(name="$!usr!msgnum")
|
|
constant(value="\n")
|
|
}
|
|
|
|
if $msg contains 'msgnum' then {
|
|
set $!usr!msgnum = field($msg, 58, 2);
|
|
if $!usr!msgnum == "00005000" or
|
|
$!usr!msgnum == "00005001" or
|
|
$!usr!msgnum == "00005002" then
|
|
action(type="omfile" file="./rsyslog.out.log" template="outfmt")
|
|
}
|