-
Notifications
You must be signed in to change notification settings - Fork 468
-
Notifications
You must be signed in to change notification settings - Fork 468
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add_contextual_data() - database.csv parsing issues #1179
Comments
Thanks, @mitzkia. 😄 Issue 1: I'll send a quick fix tomorrow. Issue 2: Issue 3: |
Hmmm do we really need to support the embedded new line stuff? I mean I
|
@bazsi : agree with you :-) |
…e-char Fixes syslog-ng#1179 Signed-off-by: László Várady <laszlo.varady@balabit.com>
@bazsi @lbudai Initially, I agreed with you. However, I can imagine a situation when the CSV was generated on a Windows and then moved to a Linux machine where syslog-ng operates. So those few lines in the PR could make syslog-ng a bit more user-friendly. Because of this, I would say that it should be fixed. Of course, I understand that it is not the main problem in this issue. |
I wasn't referring to the CR LF sequence of newlines, but the fact whether Bazsi On Fri, Aug 26, 2016 at 3:00 PM, Noémi Ványi notifications@github.com
|
I tried it, the fix works |
…e-char Fixes syslog-ng#1179 Signed-off-by: László Várady <laszlo.varady@balabit.com>
I have found some issues while tested database.csv file for add_contextual_data() parser with possible rfc4180 inputs.
RFC 4180 reference: [https://tools.ietf.org/html/rfc4180#section-2]
I have used the following general syslog-ng configuration files:
[syslog-ng.conf]
[input.log]
Found issue 1
[database.csv] - with CRLF line endings on both lines
[syslog-ng console log] - CR (\r) not stripped, only LF (\n)
[output2.log]
expected output would be:
Found issue 2
[database.csv]
[syslog-ng console error]
Found issue 3
[database.csv]
[syslog-ng.conf]
[syslog-ng console output]
[output2.log]
expected output:
syslog-ng version:
syslog-ng 3.8.1
Installer-Version: 3.8.1
Revision: 3.8.1-1
The text was updated successfully, but these errors were encountered: