[receiver/journald] support reading from all journals#42721
Merged
Conversation
This commit adds the `merge` option to the configuration, when enabled, it allows reading from all journals, including remote ones. This is accomplished by passing the `--merge` CLI flag to `journalctl`.
Contributor
|
Welcome, contributor! Thank you for your contribution to opentelemetry-collector-contrib. Important reminders:
A maintainer will review your pull request soon. Thank you for helping make OpenTelemetry better! |
andrzej-stencel
approved these changes
Sep 16, 2025
Member
andrzej-stencel
left a comment
There was a problem hiding this comment.
I'm not familiar with this option, but it exists and I suppose it's useful.
Thanks for the contribution Tiago!
Member
andrzej-stencel
left a comment
There was a problem hiding this comment.
Please add a changelog entry.
Member
Author
Done 3d4b234. |
6 tasks
songy23
pushed a commit
that referenced
this pull request
Oct 9, 2025
#### Description Add mysef as codeowner for the `journaldreceiver`, the receiver is currently [in need of new maintainers](#42597) and I have been contributing where I can. I also meet the codeowner [requirements](https://github.com/open-telemetry/opentelemetry-collector-contrib/blob/main/CONTRIBUTING.md#requirements): 1. [Be a member of the OpenTelemetry organization.](https://github.com/open-telemetry/community/blob/main/guides/contributor/membership.md#member) - https://github.com/orgs/open-telemetry/people?query=belimawr 2. (Code Owner Discretion) It is best to have resolved an issue related to the component, contributed directly to the component, and/or review component PRs. How much interaction with the component is required before becoming a Code Owner is up to any existing Code Owners. My recent contributions to `journaldreceiver`: - #42721 - #42692 - #42774 - #43126 Because the `journaldreceiver` has no code owners, I'm tagging the folks who have been reviewing my PRs. cc: @andrzej-stencel @atoulme Co-authored-by: Andrzej Stencel <andrzej.stencel@elastic.co>
tommyers-elastic
pushed a commit
to tommyers-elastic/opentelemetry-collector-contrib
that referenced
this pull request
Oct 10, 2025
…43382) #### Description Add mysef as codeowner for the `journaldreceiver`, the receiver is currently [in need of new maintainers](open-telemetry#42597) and I have been contributing where I can. I also meet the codeowner [requirements](https://github.com/open-telemetry/opentelemetry-collector-contrib/blob/main/CONTRIBUTING.md#requirements): 1. [Be a member of the OpenTelemetry organization.](https://github.com/open-telemetry/community/blob/main/guides/contributor/membership.md#member) - https://github.com/orgs/open-telemetry/people?query=belimawr 2. (Code Owner Discretion) It is best to have resolved an issue related to the component, contributed directly to the component, and/or review component PRs. How much interaction with the component is required before becoming a Code Owner is up to any existing Code Owners. My recent contributions to `journaldreceiver`: - open-telemetry#42721 - open-telemetry#42692 - open-telemetry#42774 - open-telemetry#43126 Because the `journaldreceiver` has no code owners, I'm tagging the folks who have been reviewing my PRs. cc: @andrzej-stencel @atoulme Co-authored-by: Andrzej Stencel <andrzej.stencel@elastic.co>
ChrsMark
pushed a commit
to ChrsMark/opentelemetry-collector-contrib
that referenced
this pull request
Oct 20, 2025
…43382) #### Description Add mysef as codeowner for the `journaldreceiver`, the receiver is currently [in need of new maintainers](open-telemetry#42597) and I have been contributing where I can. I also meet the codeowner [requirements](https://github.com/open-telemetry/opentelemetry-collector-contrib/blob/main/CONTRIBUTING.md#requirements): 1. [Be a member of the OpenTelemetry organization.](https://github.com/open-telemetry/community/blob/main/guides/contributor/membership.md#member) - https://github.com/orgs/open-telemetry/people?query=belimawr 2. (Code Owner Discretion) It is best to have resolved an issue related to the component, contributed directly to the component, and/or review component PRs. How much interaction with the component is required before becoming a Code Owner is up to any existing Code Owners. My recent contributions to `journaldreceiver`: - open-telemetry#42721 - open-telemetry#42692 - open-telemetry#42774 - open-telemetry#43126 Because the `journaldreceiver` has no code owners, I'm tagging the folks who have been reviewing my PRs. cc: @andrzej-stencel @atoulme Co-authored-by: Andrzej Stencel <andrzej.stencel@elastic.co>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This commit adds the
mergeoption to the configuration, when enabled, it allows reading from all journals, including remote ones. This is accomplished by passing the--mergeCLI flag tojournalctl.Link to tracking issue
Fixes #39188
Testing
A unit test is added to the
Configstruct, the test ensures that if the configuration option is true, the correct CLI flag is added when callingjournalctlA manual test was also performed by configuring
systemd-journal-remoteon the server running the OTel collector andsystemd-journal-uploadon a remote server. With the changes from this PR the OTel collector is capable of ingesting the journal from all servers, including the remote one.For the manual test I used a couple of local VMs running Arch Linux and followed this tutorial to setup
systemd-journal-remote/systemd-journal-upload.