# Using 'traefik' module in combination with autodiscovery feature does not work as expected

**URL:** <https://discuss.elastic.co/t/using-traefik-module-in-combination-with-autodiscovery-feature-does-not-work-as-expected/120522>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [February 19, 2018, 7:53pm UTC](https://discuss.elastic.co/t/using-traefik-module-in-combination-with-autodiscovery-feature-does-not-work-as-expected/120522 "2018-02-19T19:53:54Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![darkl0rd](https://avatars.discourse-cdn.com/v4/letter/d/e9a140/32.png) [@darkl0rd](https://discuss.elastic.co/u/darkl0rd)\
**Post date:** [February 19, 2018, 7:53pm UTC](https://discuss.elastic.co/t/using-traefik-module-in-combination-with-autodiscovery-feature-does-not-work-as-expected/120522/1 "2018-02-19T19:53:54Z")

</div>

Hello,

I'm using filebeat in combination with the new autodiscovery feature for docker containers.  
After some struggling (thank again @exekias!) I finally managed to get it to pick up and process the docker containers.

However, now that it's picking up the containers, the respective module configuration does not work as expected.

My configuration (taken pretty much straight from the manual):

```auto
  filebeat.autodiscover:
    providers:
      - type: docker
        templates:
          - condition:
              contains:
                docker.container.image: "traefik"
            config:
              - module: traefik
                access:
                  enabled: true
                  prospector:
                    type: docker
                    containers.ids:
                      - "${data.docker.container.id}"

```

In elasticsearch/kibana I do see the log messages, however unparsed. The field "filebeat.module" is set correctly to 'traefik' - however none of the traefik provided fields are populated, there is just the raw message in the 'message' field.

Any thoughts on how to fix this?

Thanks!

* * *

p.s. As an aside, I feel that the syntax to setup modules in combination with autodiscovery requires too much configuration compared to a regular module block.

---

<div class="post-metadata">

**Author:** ![darkl0rd](https://avatars.discourse-cdn.com/v4/letter/d/e9a140/32.png) [@darkl0rd](https://discuss.elastic.co/u/darkl0rd)\
**Post date:** [February 19, 2018, 7:58pm UTC](https://discuss.elastic.co/t/using-traefik-module-in-combination-with-autodiscovery-feature-does-not-work-as-expected/120522/2 "2018-02-19T19:58:13Z")

</div>

Seems this is a known [issue 6111](https://github.com/elastic/beats/issues/6111) which affects newer versions of Traefik.

Workaround is suggested in the issue (adjusting the provided grok patterns / pipeline).

---

<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:** [March 19, 2018, 7:58pm UTC](https://discuss.elastic.co/t/using-traefik-module-in-combination-with-autodiscovery-feature-does-not-work-as-expected/120522/3 "2018-03-19T19:58:13Z")

</div>

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