-
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] Add multiline support for journald input #29907
Comments
Pinging @elastic/elastic-agent-data-plane (Team:Elastic-Agent-Data-Plane) |
Sorry, I'm not following: is this ticket closed?
This is the first I did on Jan 14th. See https://discuss.elastic.co/t/filebeat-inputs-journald-multiline-not-working/294422. I waited 5 days for input, and only then filed this ticket. Have I created the discussion incorrectly? |
Sorry @gallardo I made a mistake while changing labels. I have reopened it. |
We would need this function too at the Austrian Parliament! |
Is this now opened somewhere else? |
@jlind23 You somehow missed to reopen it. Happens :) Can you reopen now. |
@jlind23 What's the status of this? Is it fixed? If not, can this please be reopened so it's on the radar? Thanks. |
Hey folks, the Journald input supports the same parsers as the Filestream input, unfortunately it's not documented yet 🤦♂️ Here is an example config that I've just tested in our latest release filebeat.inputs:
- type: journald
id: PR-testing
parsers:
- multiline:
type: count
count_lines: 3 Here is the documentation for the parsers: https://www.elastic.co/guide/en/beats/filebeat/8.15/filebeat-input-filestream.html#_parsers |
I also create an issue to add the documentation: #40478 |
Describe the enhancement:
Add multiline support for journald input.
According to #27578 (comment), journalbeat has been deprecated because filebeat can now read the journal and it should support multiline. In the documentation https://www.elastic.co/guide/en/beats/filebeat/current/filebeat-input-journald.html, there is unfortunately no explicit mention to
multiline
, and after many tests I couldn't find any working configuration so I'm assuming that this is not yet supported. This has also been suggested by fgjensen: https://discuss.elastic.co/t/filebeat-inputs-journald-multiline-not-working/294422/2?u=agallardoDescribe a specific use case for the enhancement or feature:
Correctly parse java multiline exceptions.
Tested on
Detailed description
I've first tested that I have a working config for the console:
filebeat.debug-console.yml
and an arbitrary stacktrace for testing:
stacktrace.example.txt
filebeat correctly parses the stacktrace (edited for readability):
Now, based on the previous configuration
filebeat.debug-console.yml
, I have created a new one for thefilebeat.input
typejournald
:filebeat.debug-journald.yml
But I couldn't get the multiline working (edited for readability):
Notice that there are 6 events, instead of the expected 3.
The text was updated successfully, but these errors were encountered: