# Metricbeat beat module works for metricbeat but not for filebeat

**URL:** <https://discuss.elastic.co/t/metricbeat-beat-module-works-for-metricbeat-but-not-for-filebeat/239376>\
**Category:** Beats\
**Created:** [June 30, 2020, 10:50pm UTC](https://discuss.elastic.co/t/metricbeat-beat-module-works-for-metricbeat-but-not-for-filebeat/239376 "2020-06-30T22:50:42Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![eyesmoker](https://avatars.discourse-cdn.com/v4/letter/e/48db29/32.png) [@eyesmoker](https://discuss.elastic.co/u/eyesmoker)\
**Post date:** [June 30, 2020, 10:50pm UTC](https://discuss.elastic.co/t/metricbeat-beat-module-works-for-metricbeat-but-not-for-filebeat/239376/1 "2020-06-30T22:50:43Z")

</div>

I have this configuration for metricbeat beat module. It shows up absolutely fine on the kibana.

```auto
metricbeat.autodiscover:
       providers:
         - type: kubernetes
           templates:
             - condition:
                 contains:
                   kubernetes.labels.app: "app=metricbeat-metricbeat"
               config:
                 - module: beat
                   metricsets: ["stats", "state"]
                   hosts: "${data.host}:5066" 
                   xpack.enabled: true 
 
      metricbeat.autodiscover:
       providers:
         - type: docker
           labels.dedot: true
           templates:
             - condition:
                 contains:
                   docker.container.name: "metricbeat"
               config:
                 - module: beat
                   metricsets: ["stats", "state"]
                   hosts: "localhost:5066" 
                   xpack.enabled: true  

```

But, when I add the following for filebeat, it doesn't show up in kibana. I have also added kubernetes type along with below and it doesn't work. It doesn't show any errors in the metricbeat pod logs.

```auto
     metricbeat.autodiscover:
       providers:
         - type: docker
           labels.dedot: true
           templates:
             - condition:
                 contains:
                   docker.container.name: "filebeat"
               config:
                 - module: beat
                   metricsets: ["stats", "state"]
                   hosts: "localhost:5066" 
                   xpack.enabled: true  

```

Please advice.

Thanks.

---

<div class="post-metadata">

**Author:** ![eyesmoker](https://avatars.discourse-cdn.com/v4/letter/e/48db29/32.png) [@eyesmoker](https://discuss.elastic.co/u/eyesmoker)\
**Post date:** [July 19, 2020, 7:16am UTC](https://discuss.elastic.co/t/metricbeat-beat-module-works-for-metricbeat-but-not-for-filebeat/239376/2 "2020-07-19T07:16:11Z")

</div>

curious if there is any update on this?

---

<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:** [August 16, 2020, 9:16am UTC](https://discuss.elastic.co/t/metricbeat-beat-module-works-for-metricbeat-but-not-for-filebeat/239376/3 "2020-08-16T09:16:15Z")

</div>

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