You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using Elastic Cloud 8.5.3/Elastic Agent 8.5.3/Docker integration 2.3.0
Issue
I am attempting to monitor docker container logs and metrics using the Fleet-managed Docker integration with Elastic Agent. The metrics are ingesting as expected, however logs are not being ingested as expected. I've validated that container logs are where the integration expects them to be (/var/lib/docker/containers/${docker.container.id}/*-json.log).
When I set the log level to debug for the Elastic Agent, I see the following in the agent logs:
12:47:01.468
elastic_agent.filebeat
[elastic_agent.filebeat][debug] Error while extracting container ID from source path: index is out of range for field 'log.file.path'
The inputs section of the policy being generated by Fleet is:
renzedj
changed the title
[Elastic Agent]
[Elastic Agent] Docker Integration: Error while extracting container ID from source path: index is out of range for field 'log.file.path'
Dec 22, 2022
Hi!
We just realized that we haven't looked into this issue in a while. We're sorry!
We're labeling this issue as Stale to make it hit our filters and make sure we get back to it as soon as possible. In the meantime, it'd be extremely helpful if you could take a look at it as well and confirm its relevance. A simple comment with a nice emoji will be enough :+1.
Thank you for your contribution!
Configuration
Using Elastic Cloud 8.5.3/Elastic Agent 8.5.3/Docker integration 2.3.0
Issue
I am attempting to monitor docker container logs and metrics using the Fleet-managed Docker integration with Elastic Agent. The metrics are ingesting as expected, however logs are not being ingested as expected. I've validated that container logs are where the integration expects them to be (
/var/lib/docker/containers/${docker.container.id}/*-json.log
).When I set the log level to debug for the Elastic Agent, I see the following in the agent logs:
The inputs section of the policy being generated by Fleet is:
Workaround
I found a similar issue for Kubernetes (#27216), so based on that, I added the following to the processors in my fleet-managed configuration:
I still receive this error on startup (presumably from the default filebeat configuration), however logs are now ingesting as expected.
The text was updated successfully, but these errors were encountered: