summaryrefslogtreecommitdiffstats
path: root/tests/testsuites/rscript_field.conf
diff options
context:
space:
mode:
Diffstat (limited to 'tests/testsuites/rscript_field.conf')
-rw-r--r--tests/testsuites/rscript_field.conf11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/testsuites/rscript_field.conf b/tests/testsuites/rscript_field.conf
new file mode 100644
index 00000000..d7eb9066
--- /dev/null
+++ b/tests/testsuites/rscript_field.conf
@@ -0,0 +1,11 @@
+$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);
+ action(type="omfile" file="./rsyslog.out.log" template="outfmt")
+}