# Autodiscover doesn't work for Nginx

**URL:** <https://discuss.elastic.co/t/autodiscover-doesnt-work-for-nginx/126735>\
**Category:** Beats\
**Created:** [April 4, 2018, 11:58am UTC](https://discuss.elastic.co/t/autodiscover-doesnt-work-for-nginx/126735 "2018-04-04T11:58:59Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mugen](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mugen/32/16454_2.png) [@Mugen](https://discuss.elastic.co/u/Mugen)\
**Post date:** [April 4, 2018, 11:59am UTC](https://discuss.elastic.co/t/autodiscover-doesnt-work-for-nginx/126735/1 "2018-04-04T11:59:00Z")

</div>

I am working with a Kubernetes-Cluster and try to get autodsicover ( **Filebeat 6.2.2** ) to work. Sadly it doesn't parse nginx logs even tough the field docker.container.image exists and contains the string "nginx" am I doing something wrong here ?

```
filebeat.autodiscover:
  providers:
    - type: kubernetes
      templates:
        - condition.contains:
            docker.container.image: nginx
          config:
            - module: nginx
              access:
                prospector:
                  type: docker
                  containers.ids:
                    - ${data.docker.container.id}
              error:
                prospector:
                  type: docker
                  containers.ids:
                    - ${data.docker.container.id}

```

Since there are not that much modules for different programs I will try to go the logstash way and parse all the logs with logstash. Is there a reason against logstash for parsing the logs off all containers ?

---

<div class="post-metadata">

**Author:** ![kvch](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kvch/32/72058_2.png) [@kvch](https://discuss.elastic.co/u/kvch)\
**Post date:** [April 4, 2018, 2:07pm UTC](https://discuss.elastic.co/t/autodiscover-doesnt-work-for-nginx/126735/2 "2018-04-04T14:07:52Z")

</div>

Could you please share the debug logs of Filebeat?

---

<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:** [May 2, 2018, 4:07pm UTC](https://discuss.elastic.co/t/autodiscover-doesnt-work-for-nginx/126735/3 "2018-05-02T16:07:57Z")

</div>

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