Read containers log files using fleet

Good afternoon.
When studying Fleet and apm agents, the question arose, is it possible to somehow collect logs from docker containers, as done in filebeat, or is there no such possibility yet?

1 Like

Hello,

I am also interesting to know if Elastic Agent and Fleet server can be configured to collect docker logs.
I tried with "Generic Log" integration module but the result is not correct: The log files are collected but we don't have container information (name, ...)

Thanks.
Richard.

Hello,

Yes it is possible to collect docker container logs by using the Custom Logs integration and setting /var/lib/docker/containers//-json.log as Log file path.

Also if you are using docker as runtime for Kubernetes you can collect the container logs using Kubernetes Container Logs integration.

1 Like

Hello,
Is it possible to parse the JSON structure in message, because I can include this option in the filebeat?

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.