# Docker driver not logging to Loki

**URL:** <https://community.grafana.com/t/docker-driver-not-logging-to-loki/34352>\
**Category:** Grafana Loki\
**Tags:** docker, loki\
**Created:** [July 29, 2020, 11:24am UTC](https://community.grafana.com/t/docker-driver-not-logging-to-loki/34352 "2020-07-29T11:24:25Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![tam481](https://avatars.discourse-cdn.com/v4/letter/t/9de0a6/32.png) [@tam481](https://community.grafana.com/u/tam481)\
**Post date:** [July 29, 2020, 11:24am UTC](https://community.grafana.com/t/docker-driver-not-logging-to-loki/34352/1 "2020-07-29T11:24:25Z")

</div>

Hello all,  
I am running loki behind Traefik. The URL is [https://loki.domain.tld](https://loki.domain.tld) and it shows as ready ([https://loki.domain.tld/ready](https://loki.domain.tld/ready)) so I know that bit works.

I installed the Docker logging driver and it is enabled.

Here is the logging config in my docker-compose.yml file for the service:

> ```
> x-logging:
> &loki
> logging:
> driver: loki
> options:
> loki-url: "https://loki.domain.tld/loki/api/v1/push"
> loki-batch-size: "400"
> loki-retries: "5"
> 
> ```

and the service itself has  
\<\< : \*loki

However, I start the service and I can see logs when I run docker logs container but nothing is getting logged to loki.

---

<div class="post-metadata">

**Author:** ![fredriksmedberg](https://avatars.discourse-cdn.com/v4/letter/f/c37758/32.png) [@fredriksmedberg](https://community.grafana.com/u/fredriksmedberg)\
**Post date:** [April 25, 2023, 9:43am UTC](https://community.grafana.com/t/docker-driver-not-logging-to-loki/34352/2 "2023-04-25T09:43:35Z")

</div>

Hi @tam481! Did you ever manage to solve the problem? I have the exact same problem and so far I’ve not managed to get the plugin to log anything from my Docker Compose and Docker containers into the Grafana Cloud Loki instance I’m using. I’ve double checked API keys, URLs etc.

---

<div class="post-metadata">

**Author:** ![tam481](https://avatars.discourse-cdn.com/v4/letter/t/9de0a6/32.png) [@tam481](https://community.grafana.com/u/tam481)\
**Post date:** [April 25, 2023, 10:55am UTC](https://community.grafana.com/t/docker-driver-not-logging-to-loki/34352/3 "2023-04-25T10:55:40Z")

</div>

Hi @fredriksmedberg It turns out, rather embarrassingly, that it wasn’t Grafana. It was my Loki container where I hadn’t disabled analytics. As soon as I added

```auto
analytics:
  reporting_enabled: false

```

and restarted the container, all the DNS domain lookups stopped.

I hope this helps.
