[8.19] (backport #7995) Enable Filebeat's Journald input in some docker image variants#8492
Merged
[8.19] (backport #7995) Enable Filebeat's Journald input in some docker image variants#8492
Conversation
Filebeat's Journald input requires `journalctl`, so the systemd package is added to elastic-agent, elastic-agent-complete, elastic-otel-collector variants. --------- Co-authored-by: Craig MacKenzie <craig.mackenzie@elastic.co> (cherry picked from commit fd33d85) # Conflicts: # dev-tools/packaging/templates/docker/Dockerfile.elastic-agent.tmpl
Contributor
Author
|
Cherry-pick of fd33d85 has failed: To fix up this pull request, you can check it out locally. See documentation: https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/reviewing-changes-in-pull-requests/checking-out-pull-requests-locally |
Contributor
|
Pinging @elastic/elastic-agent-control-plane (Team:Elastic-Agent-Control-Plane) |
Contributor
|
Pinging @elastic/elastic-agent-data-plane (Team:Elastic-Agent-Data-Plane) |
Contributor
Author
|
This pull request has not been merged yet. Could you please review and merge it @belimawr? 🙏 |
Fix merge conflicts dues to the different base images and variants, remove the Otel-Collector tests because this variant does not exist in 8.19.
|
Contributor
💛 Build succeeded, but was flaky
Failed CI StepsHistory
cc @belimawr |
8 tasks
belimawr
approved these changes
Jun 17, 2025
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.





What does this PR do?
Filebeat's Journald input requires
journalctl, so the systemd package is added to all docker image variants.Changes in image size
Images built from
main(f108618):Images built from this PR:
Increase in size
docker.elastic.co/elastic-agent/elastic-agent-complete: 10MBdocker.elastic.co/elastic-agent/elastic-otel-collector: 50MBdocker.elastic.co/elastic-agent/elastic-agent: 40MBWhy is it important?
Currently it is only possible to use integrations that requires the journald input with the complete docker image variant, this PR allows it to be used with any docker image variant. The complete docker image is the largest with more than 3Gb, while the standard Elastic-Agent image is less than 2Gb.
Checklist
I have commented my code, particularly in hard-to-understand areasI have made corresponding change to the default configuration filesI have added tests that prove my fix is effective or that my feature works./changelog/fragmentsusing the changelog toolI have added an integration test or an E2E test## Disruptive User ImpactAuthor's Checklist
How to test this PR locally
journalctlon each docker image by running the following script/commands:Related issues
journalctlto Filebeat and Elastic-Agent docker images beats#44040Questions to ask yourself
This is an automatic backport of pull request #7995 done by [Mergify](https://mergify.com).