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

[Journalbeat] Still no multiline support after 3 years #27578

Closed
yupm opened this issue Aug 25, 2021 · 4 comments
Closed

[Journalbeat] Still no multiline support after 3 years #27578

yupm opened this issue Aug 25, 2021 · 4 comments
Assignees
Labels
Team:Elastic-Agent Label for the Agent team

Comments

@yupm
Copy link

yupm commented Aug 25, 2021

May I know if there is any progress on the support for multiline in Journalbeats?
This feature has been pending for 3 years already: #8323

Currently we are writing kubernetes/docker logs to journald. However, some of the stack traces are multi line and this gets split up.
It seems that Filebeat has the ability to manage multiline https://www.elastic.co/guide/en/beats/filebeat/current/multiline-examples.html. Might it be easy to port over this feature to Journalbeat?

I have looked into using Logstash to process file events, but the document states that:

If you are using a Logstash input plugin that supports multiple hosts, such as the beats input plugin, you should not use the multiline codec to handle multiline events. Doing so may result in the mixing of streams and corrupted event data. In this situation, you need to handle multiline events before sending the event data to Logstash.

This request was also raised here: #10114

@botelastic botelastic bot added the needs_team Indicates that the issue/PR needs a Team:* label label Aug 25, 2021
@ruflin ruflin added the Team:Elastic-Agent Label for the Agent team label Aug 30, 2021
@elasticmachine
Copy link
Collaborator

Pinging @elastic/agent (Team:Agent)

@botelastic botelastic bot removed the needs_team Indicates that the issue/PR needs a Team:* label label Aug 30, 2021
@nimarezainia
Copy link
Contributor

Hello @yupm,

As of 7.16 journald is provided as an input to Filebeat: https://www.elastic.co/guide/en/beats/filebeat/current/filebeat-input-journald.html which supports multi-line. Consequently journalbeat has been deprecated from that release onwards.

To future proof your deployment we suggest using filebeat. Would that work for you in this case?

@SpComb
Copy link

SpComb commented Jan 27, 2022

per https://discuss.elastic.co/t/filebeat-inputs-journald-multiline-not-working/294422 and #29907, the filebeat journald input does not support multi-line.

Should the beats issue be re-opened? Is it a bug, or more of a feature request?

Compared to the existing filebeat file input, multi-line support for journald might need add some additional complexity to account for multiple processes writing interleaved multi-line messages to the same journal stream... for filebeat file inputs, I assume that the multi-line implementation assumes that only one process will be writing per file, but that is generally not the case for journald. I think I discussed this in the older third-party journalbeat repo, but it looks like https://github.com/mheese/journalbeat/issues/37 is now gone 😕

@l0calhost
Copy link

From a user perspective i currently see no functional way to handle multiline messages (e.g. jav stack traces) from the journal either with filebeat or journalbeat. The discussion/FR for filebeat is closed (see #29907), same here for journalbeat.

I would very much appreciate it to have multiline support in at least one of the beats to have a technical way to solve this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Team:Elastic-Agent Label for the Agent team
Projects
None yet
Development

No branches or pull requests

6 participants