# Docker integration not collecting logs

**URL:** <https://discuss.elastic.co/t/docker-integration-not-collecting-logs/337096>\
**Category:** Elastic Agent\
**Tags:** filebeat\
**Created:** [June 28, 2023, 2:12pm UTC](https://discuss.elastic.co/t/docker-integration-not-collecting-logs/337096 "2023-06-28T14:12:44Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![glenbot](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/glenbot/32/122809_2.png) [@glenbot](https://discuss.elastic.co/u/glenbot)\
**Post date:** [June 28, 2023, 2:12pm UTC](https://discuss.elastic.co/t/docker-integration-not-collecting-logs/337096/1 "2023-06-28T14:12:44Z")

</div>

The docker integration is collecting metrics perfectly but not logs.

Versions:  
Agent: 8.7.1  
Docker Integration: 2.6.0

I have tried changing the container log path to:

/var/lib/docker/containers/_/_-json.log  
and  
/var/lib/docker/containers/${docker.container.id}/\*-json.log

I have tried every processor and parser configuration from the following issues:

- [Elastic Docker Integration - not collecting logs](https://discuss.elastic.co/t/elastic-docker-integration-not-collecting-logs/326947)
- [Docker Logs keep getting dropped with tried to parse field [image] as object, but found a concrete value error - #36 by stephenb](https://discuss.elastic.co/t/docker-logs-keep-getting-dropped-with-tried-to-parse-field-image-as-object-but-found-a-concrete-value-error/326245/36)

Anyone else have any luck getting the logs portion of this integration to work?

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 26, 2023, 2:12pm UTC](https://discuss.elastic.co/t/docker-integration-not-collecting-logs/337096/2 "2023-07-26T14:12:52Z")

</div>

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