[syslog-ng] [Bug 90] New: csv-parser's flags(drop-invalid) doesn' t work with escape-{backslash, double-char}

bugzilla at bugzilla.balabit.com bugzilla at bugzilla.balabit.com
Thu Jun 24 23:42:51 CEST 2010


https://bugzilla.balabit.com/show_bug.cgi?id=90

           Summary: csv-parser's flags(drop-invalid) doesn't work with
                    escape-{backslash,double-char}
           Product: syslog-ng
           Version: 3.0.x
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: unspecified
         Component: syslog-ng
        AssignedTo: bazsi at balabit.hu
        ReportedBy: andrewn at locus.net
Type of the Report: bug
   Estimated Hours: 0.0


Created an attachment (id=19)
 --> (https://bugzilla.balabit.com/attachment.cgi?id=19)
Possible fix

The example parser p_apache in syslog-ng-v3.0-guide-admin-en.pdf on numbered page 63 does not work when drop-invalid is added.

The 2 main loops of log_csv_parser_process seem to treat cur_column and src differently upon termination.  The patch attached attempts to fix that.  It also
checks to see that the whole string was parsed.

I don't know if this is the correct fix, but so far it seems to Work For Me (tm).


-- 
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