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

bugzilla at bugzilla.balabit.com bugzilla at bugzilla.balabit.com
Thu Aug 22 15:32:55 CEST 2013


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.


More information about the syslog-ng mailing list