-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
… #1416
… #1416
Conversation
in_tail tests are broken. It means this patch breaks multiline mode result. |
i wonder if the wider fluentd community are interested in being able to capture unmatched multiline events? currently the only way is through the td-agent. In logstash it is stored in the output tagged with grokparsefailure |
019fcb1
to
16be5df
Compare
Hi @repeatedly, I've redone the implementation so that the multiline-logstash behaviour is turned on when enable_multiline_catch_all is set to true. I'm not sure why some of the tests are failing though. Are they existing test failures? |
Another idea is adding emit feature for unmatched logs instead of logging here: fluentd/lib/fluent/plugin/in_tail.rb Line 390 in 48526e4
|
I'm not sure if emitting the event from parse_multilines() is the right way to go about it, I rather have them handled in flush_buffer() Here's another implementation of handling unmatched lines: jitran@86d188f Essentially all unmatched lines will be placed inside the parse_fail attribute, i.e.
Please let me know which implementation you prefer. Thanks |
…pattern, we should still store the unmatched lines in the line buffer so that plugins such as fluent-plugin-grok-parser can report the log event as a grok parse error, see: fluent/fluent-plugin-grok-parser#25. To enable this, set enable_multiline_catch_all to true in the of source section
16be5df
to
42ed42e
Compare
Closing this PR in favour of this #1421 |
For multiline events, if the first line doesn't match the prescribed pattern, we should still store the unmatched lines in the line buffer so that plugins such as fluent-plugin-grok-parser can report the log event as a grok parse error, see: fluent/fluent-plugin-grok-parser#25
Example:
input:
output: