[syslog-ng] exclude empty pairs from json-parser()

Nik Ambrosch nik at ambrosch.com
Tue May 22 05:50:31 UTC 2018

Hi - I'm trying to figure out how to instruct json-parser() to exclude
empty (or nonexistent) json pairs from being passed to it's template.  This
is possible with the csv parser using null("") but not json.

It seems that if i specify all my json-parser() pairs using --pair
example=\"${MYMACRO}\" the desired behavior is achieved, however using
--scope nv-pairs instead will log the empty values.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.balabit.hu/pipermail/syslog-ng/attachments/20180522/c9bb9044/attachment.html>

More information about the syslog-ng mailing list