rsyslog/tests/testsuites/array_lookup_table.conf

12 lines
287 B
Plaintext

$IncludeConfig diag-common.conf
lookup_table(name="xlate" file="xlate_array.lkp_tbl")
template(name="outfmt" type="string" string="%msg% %$.lkp%\n")
set $.num = field($msg, 58, 2);
set $.lkp = lookup("xlate", $.num);
action(type="omfile" file="./rsyslog.out.log" template="outfmt")