SmartConnector syslog-ng RFC5424 extension can't interpret escape characters

Idea ID 2805934

SmartConnector syslog-ng RFC5424 extension can't interpret escape characters

Hi,

we still encounter problems with RFC5424 logs which include comments inside a structured data field. Those comments are encapsuled with quotes and therefore these quotes get escaped.

e.g
eventType="PAM:session_closed for acct=\"root\""

It may also be an issue that a second equal (=) sign appear, but I can't tell. This leads to the problem, that the whole structured data gets skipped and just unstructured data is parsed. I would assume that it produce an empty field, but it is not the case so there might be more incorrect interpretations.

Due to GDPR I can't attach the original logs, but escaping characters is a valid RFC5424 procedure which should be fixed in general.

  

The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.