rsyslog/tests/testsuites/rscript_stop.conf
2012-09-20 11:38:16 +02:00

14 lines
311 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 cnum($!usr!msgnum) >= 5000 then
stop
action(type="omfile" file="./rsyslog.out.log" template="outfmt")
}