-
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
Typo in syslog_rfc3164.rl causes parsing errors for December syslog dates #9323
Comments
Fix is in #9349 |
You need to use ragel to regenerate the state machine or use my PR which include the fix and the regenerated parser. |
What is the command-line you use for the ragel generation? |
…y parse December or Dec (#9352) Cherry-pick of PR #9349 to 6.x branch. Original message: The syslog parser was missing a `D` in the month, so it was failling to parse common syslog event from december, this PR add the missing letter and also add an unit test to cover both the short and full month format. Fixes: #9323 --- Reported at https://discuss.elastic.co/t/typo-in-syslog-rfc3164-rl-causes-parsing-errors-for-december-syslog-dates/159030
For confirmed bugs, please report:
This is a properly formatted rfc3164 syslog message, as far as I can tell. Looking at the source code, the month strings are defined in the file syslog_rfc3164.rl. The definition is:
I'm guessing that it should be:
That is, there is a missing capital D from the December string. Because of this, any syslog message with the month of December in the date will trigger the error.
Edit: I built a filebeat binary on FreeBSD (had to get rid of some gosigar stuff that doesn't work on FreeBSD, HugeTLBPages) with the file patched. However, I am still getting the error message in my logs:
Any ideas, then, what might be causing this problem?
The text was updated successfully, but these errors were encountered: