Skip to content
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 more available characters for tag part of syslog format #1609

Merged
merged 1 commit into from
Jul 3, 2017

Conversation

mururu
Copy link
Member

@mururu mururu commented Jun 30, 2017

About the TAG part of syslog format (RFC3164).
RFC3164 says "Any non-alphanumeric character will terminate the TAG field". But some syslog senders send non-alphanumeric characters as a part of TAG, so currently fluentd allowed some non-alphanumeric characters: [a-zA-Z0-9_\/\.\-]. In the real world, there are cases that require more characters. For example, Cisco ASA Series Syslog Messages includes % like %ASA-1-101001. It is useful if fluentd can handle such messages.

rsyslog syslog-ng and accept all characters except , : and [:

https://github.com/rsyslog/rsyslog/blob/master/tools/pmrfc3164.c#L314-L347
https://github.com/balabit/syslog-ng/blob/master/modules/syslogformat/syslog-format.c#L558-L609

This PR follows them.

Once this PR is merged, I will send a PR for the master branch.

@mururu mururu requested a review from repeatedly June 30, 2017 08:07
@repeatedly
Copy link
Member

Looks good 👍

@mururu mururu merged commit 8db50ed into fluent:v0.12 Jul 3, 2017
@mururu
Copy link
Member Author

mururu commented Jul 3, 2017

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants