-
Notifications
You must be signed in to change notification settings - Fork 76
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
Docker configuration #43
Comments
@philippkahr Did you ever make progress on this? I think this is my issue at the moment as well. |
@clarkritchie sadly, no I never did any good progress on this. I think I solved it by doing some Docker filesystem mapping and picking it up with filebeat.
|
@philippkahr sorry, this got burried under too much other stuff. I just worked with something similar today and also ran into You are collecting the log files from all the containers (
|
Hi, this issue hasn't had any update in a long time ! Regarding integration of ECS logs and APM integration we now have a few "ready to use" examples in our contrib repo: https://github.com/elastic/apm-contrib/tree/main/apm-agent-java/log-ingest. In particular here, the example 02 uses ECS logging library (the one in this repo) with a filebeat integration. |
You are JSON decoding your log three times. First time by adding the Second time by adding the Third time in The documentation is confusing in this regard to be fair, I spent quite some time on it. If anyone is running into this, start simple by removing the processors and parsers and only keep the input type and path, with output to console, look at it, make sure you understand the output and move on. output.console:
pretty: true This can be closed I suppose, just like the issue I linked in the beginning, but the docs really need some quality examples added. |
Hi,
I am having a hard time working out how to use it in conjunction with docker. I have a Java application that logs everything in JSON to a file inside the docker container. I have created a
ln -sf /dev/stdout /opt/application.json
symlink, so everything will be output to stdout. Of course, looking into the -json.log file created by Docker in the/var/lib/docker/container/containerid/*-json.log
it looks something like this:My filebeat config looks like this:
I am using the message decoder like suggested in the README
however, I can see a couple of errors in
journalctl -u filebeat -f
Any idea on how to use the ECS logging in combination with docker? I would love to have it, so I can jump from the APM to the
container logs
.The text was updated successfully, but these errors were encountered: