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@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@balabit.hu
        ReportedBy: bugzilla.balabit@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