summaryrefslogtreecommitdiff
path: root/tests/testsuites/rscript_ne.conf
blob: 43148ca8d58fb98344e2e9cc7424e3335440aff7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
$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" and
	   $!usr!msgnum != "00005001" and
	   $!usr!msgnum != "00005002" then
		set $!usr!write = 0;
	else
		set $!usr!write = 1;
	if $!usr!write == 1 then
		action(type="omfile" file="./rsyslog.out.log" template="outfmt")
}