mirror of
https://github.com/rsyslog/rsyslog.git
synced 2025-12-17 01:00:40 +01:00
13 lines
308 B
Plaintext
13 lines
308 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, 1);
|
|
set $!usr!msgnum = field($msg, 58, 2);
|
|
action(type="omfile" file="./rsyslog.out.log" template="outfmt")
|
|
}
|