[syslog-ng] [Bug 248] New: template parsing does not split ", " argument of --scope

Balazs Scheidler bazsi77 at gmail.com
Sun Aug 25 08:18:12 CEST 2013


Thanks for the report, these actually help a lot to refine the
documentation.

Regarding the comma, iirc it works when using the value pairs definition
with the config file syntax and not when using the command line syntax.
This could and should be fixed in the code instead of the documentation.

Anyone volunteering with a patch? Should be easy.
On Aug 22, 2013 3:33 PM, <bugzilla at bugzilla.balabit.com> wrote:

> https://bugzilla.balabit.com/show_bug.cgi?id=248
>
>            Summary: template parsing does not split "," argument of --scope
>            Product: syslog-ng
>            Version: 3.4.x
>           Platform: PC
>         OS/Version: Linux
>             Status: NEW
>           Severity: normal
>           Priority: unspecified
>          Component: syslog-ng
>         AssignedTo: bazsi at balabit.hu
>         ReportedBy: bugzilla.balabit at faxm0dem.org
> Type of the Report: ---
>    Estimated Hours: 0.0
>
>
> As stated in paragraph 2.8.4.(Structuring macros, metadata, and other
> value-pairs) of the documentation, in example  2.1. (Using the
> value-pairs() option)
> it should be possible to pass multiple coma separated values to a
> template. However, this seems to be broken:
>
> Error parsing config, Error compiling template (Error parsing value-pairs:
> unknown scope all-nv-pairs,rfc5423) in /opt/etc/syslog-ng.conf at line 44,
> column
> 14:
>
>
>     template("$(format-json --scope all-nv-pairs,rfc5423 )\\n");
>              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>
> The workaround is to specify '--scope $scope' multiple times
>
>
> --
> Configure bugmail: https://bugzilla.balabit.com/userprefs.cgi?tab=email
> ------- You are receiving this mail because: -------
> You are watching all bug changes.
>
> ______________________________________________________________________________
> Member info: https://lists.balabit.hu/mailman/listinfo/syslog-ng
> Documentation:
> http://www.balabit.com/support/documentation/?product=syslog-ng
> FAQ: http://www.balabit.com/wiki/syslog-ng-faq
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.balabit.hu/pipermail/syslog-ng/attachments/20130825/4274599f/attachment.htm 


More information about the syslog-ng mailing list