[8.19](backport #44056) Install systemd on Filebeat Docker images#44087
Merged
[8.19](backport #44056) Install systemd on Filebeat Docker images#44087
Conversation
The journald input from Filebeat requires the `journalctl` binary to ingest journal logs, this commit adds it by installing systemd in all Filebeat Docker container images (cherry picked from commit 32ecb7c) # Conflicts: # docs/reference/filebeat/filebeat-input-journald.md # docs/release-notes/index.md
Contributor
Author
|
Cherry-pick of 32ecb7c 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 |
6 tasks
Contributor
|
Pinging @elastic/elastic-agent-data-plane (Team:Elastic-Agent-Data-Plane) |
kilfoyle
approved these changes
Apr 25, 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.
Proposed commit message
The journald input from Filebeat requires the
journalctlbinary to ingest journal logs, this commit adds it by installing systemd in all Filebeat Docker container imagesChecklist
I have made corresponding change to the default configuration filesI have added tests that prove my fix is effective or that my feature worksCHANGELOG.next.asciidocorCHANGELOG-developer.next.asciidoc.## Disruptive User Impact## Author's ChecklistHow to test this PR locally
Package Filebeat
DEV=true SNAPSHOT=true PACKAGES="docker" PLATFORMS=linux/amd64 mage -v packageEnsure
journalctlis present in the containers (adjust the image name/tag according to the version you built, oss or not)Start a stack. E.g: using elastic-package:
elastic-package stack up --version=9.1.0-SNAPSHOT -v -dCreate the following
filebeat.yml(adjust the IP address/ES host as needed)filebeat.yml
Then run Filebeat from the docker image (adjust the journald folder if needed)
Ensure there are no errors and data is ingested
Related issues
journalctlto Filebeat and Elastic-Agent docker images #44040## Use cases## Screenshots## LogsThis is an automatic backport of pull request #44056 done by [Mergify](https://mergify.com).