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

syslog input not following RFC3164 #14

Open
jordansissel opened this issue May 18, 2015 · 0 comments
Open

syslog input not following RFC3164 #14

jordansissel opened this issue May 18, 2015 · 0 comments

Comments

@jordansissel
Copy link
Contributor

(This issue was originally filed by @fajabird at elastic/logstash#2812)


RFC3164 states the following:

  1. "The HEADER part contains a timestamp and an indication of the
    hostname or IP address of the device"
  2. "The MSG part has two fields known as the TAG field and the CONTENT
    field."
  3. "Any non-alphanumeric character will terminate the TAG field and will be
    assumed to be the starting character of the CONTENT field."

But logstash's syslog-input expects the TAG-Field to be terminated by a ":" which will not match some syslog-conform messages.

I manually modified the file "logstash/patterns/linux-syslog" to become the TAG optional:

OLD:
SYSLOGBASE2 (?:%{SYSLOGTIMESTAMP:timestamp}|%{TIMESTAMP_ISO8601:timestamp8601}) (?:%{SYSLOGFACILITY} )?%{SYSLOGHOST:logsource} %{SYSLOGPROG}:

NEW:
SYSLOGBASE2 (?:%{SYSLOGTIMESTAMP:timestamp}|%{TIMESTAMP_ISO8601:timestamp8601}) (?:%{SYSLOGFACILITY} )?%{SYSLOGHOST:logsource}( %{SYSLOGPROG}:)?

Could this become available in the upstream?

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

No branches or pull requests

2 participants