[syslog-ng] Format-json scope
Gergely Nagy
algernon at balabit.hu
Fri Feb 3 11:34:29 CET 2012
Vámos Balázs <vamos.balazs at zuriel.hu> writes:
> Error message in log:
> error in template: $(format-json --scope soft-macros)
There is no soft-macros scope, only selected-macros. The list of known
scopes is:
nv-pairs, dot-nv-pairs, all-nv-pairs, rfc3164 (also aliased to core and
base), rfc5424 (also aliased to syslog-proto), all-macros,
selected-macros, sdata and everything.
As for separating scopes.. as far as I see, you need to use spaces, and
quote the scope list: $(format-json --scope "all-macros sdata")
I haven't tested this yet, though, and perhaps adding support for using
a comma-separated list would be reasonable. But I'm not too keen on
doing that, as --scope is something that I don't like all that much..
--
|8]
More information about the syslog-ng
mailing list