-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
[FileBeat - syslog input] More lenient parsing of RFC3164 dates #16824
Comments
Pinging @elastic/integrations-services (Team:Services) |
I'm attempting to use filebeat for the first time to ingest forcepoint web appliance logs. I believe that I am experiencing this same issue (I will know more when I can test on a double digit day) Is there a workaround I can use while this fix gets tested/released? |
Same issues here. Following |
Pinging @elastic/security-external-integrations (Team:Security-External Integrations) |
There are two syslog parser packages in beats, one in libbeat/reader/syslog (since March this year) and an older one in filebeat/input/syslog (since 2018). The older one specifically accepts the slightly invalid format. The newer one does additional structuring of the result, but does not handle this variation. It might make sense to reduce this duplication and roll one of them into the other. /cc @taylor-swanson |
@cyrille-leclerc I believe this is now fixed with #31254. Can you confirm? |
Pinging @elastic/sec-deployment-and-devices (Team:Security-Deployment and Devices) |
Describe the enhancement:
Syslog RFC 3614 use an uncommon pattern for dates with single digit day of month requiring a padding with a space char ("
") instead of the common padding with a "
0
".Some syslog clients are not strictly compliant with RFC 3164 and use a padding with "
". Supporting these minor violations of the standard would ease the usage of FileBeat syslog input. Syslog endpoints such as papertrail accept this violation of the RFC 3164 date format.
0
" instead of "Example:
Today, the parsing of the not strictly compliant message fails with the debug message:
RFC3164 - 4.1.2 HEADER Part of a syslog Packet
https://tools.ietf.org/html/rfc3164#section-4.1.2
Describe a specific use case for the enhancement or feature:
Supporting Syslog clients that suffer from this slight misunderstanding of the required date format of RFC 3164.
Example of syslog client making this mistake: jenkinsci/syslog-java-client#37
Problem discussed with @kvch
The text was updated successfully, but these errors were encountered: