-
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
Beats do not log to stderr when running in a container or systemd environment #41118
Beats do not log to stderr when running in a container or systemd environment #41118
Comments
Pinging @elastic/elastic-agent-data-plane (Team:Elastic-Agent-Data-Plane) |
Add a known issue entry for 8.15.0 and 8.15.2 referencing elastic#41118.
Add a known issue entry for 8.15.0 and 8.15.2 referencing elastic#41118.
Add a known issue entry for 8.15.0 and 8.15.2 referencing #41118.
@belimawr I'm confused, isn't this behaving as expected according to #38767?
Edit: In a call with Tiago it is clear that this was not supposed to affect the container behavior. |
This seems to be a bug introduced in elastic/elastic-agent-libs#208, the default location for container logs was silently changed to files instead of stderr. It should be fixed by elastic/elastic-agent-libs#236. |
Reopening as we need to track the PRs updating the lib in Beats as well as backport PRs. |
-environment container
is set.
FYI I updated this ticket to mention that |
…nts (#41194) This PR updates elastic-agent-libs to the latest version in order to fix #41118. (cherry picked from commit f369a28) Co-authored-by: Mauri de Souza Meneguzzo <[email protected]>
…er or systemd environments (#41193) * fix: restore stderr logs when running on docker or systemd environments This PR updates elastic-agent-libs to the latest version in order to fix #41118. (cherry picked from commit f369a28) # Conflicts: # NOTICE.txt # go.mod # go.sum * fix conflicts --------- Co-authored-by: Mauri de Souza Meneguzzo <[email protected]>
For confirmed bugs, please report:
-environment container
Reproducing with Docker:
Will log to stderr
Will produce no logs on stderr.
When using
-environment systemd
this issue can also be observed.Workaround
Pass the
-e
flag when running the Beat or addlogging.to_stderr: true
to your configuration file.The text was updated successfully, but these errors were encountered: