# Filebeat config check isn't reliable

**URL:** <https://discuss.elastic.co/t/filebeat-config-check-isnt-reliable/292807>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [December 23, 2021, 1:37pm UTC](https://discuss.elastic.co/t/filebeat-config-check-isnt-reliable/292807 "2021-12-23T13:37:08Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![javond](https://avatars.discourse-cdn.com/v4/letter/j/c67d28/32.png) [@javond](https://discuss.elastic.co/u/javond)\
**Post date:** [December 23, 2021, 1:37pm UTC](https://discuss.elastic.co/t/filebeat-config-check-isnt-reliable/292807/1 "2021-12-23T13:37:08Z")

</div>

With that config

```auto
fields:
  domain: XXXXXXXXX
filebeat:
  config:
    inputs:
      enabled: true
      path: /etc/filebeat/inputs.d/*.yaml
      reload:
        enabled: true
        period: 30s
    modules:
      path: /etc/filebeat/modules.d/*.yaml
      reload:
        enabled: true
        period: 30s
output:
  logstash:
    hosts:
    - XXX.XXX.fr:5XXX

```

The command `filebeat test config` answer `Config OK`

But when you type `filebeat modules enable logstash` you got :

```auto
Error in modules manager: wrong settings for config.modules.path, it is expected to end with *.yml. Got: /etc/filebeat/modules.d/*.yaml

```

This is not a **loyal** check...

Maybe the test config doesn't check that to let you be able to give another directory...  
Thus you should at least give a warning : Your config is cool but be carefull you can't use modules enable command line...

Another tricks would be to change the `path` argument to a `paths` argument with a list of paths to detect modules or inputs in config object.

Thanks for your attention.

Regards,

J. Avond

---

<div class="post-metadata">

**Author:** ![mtojek](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mtojek/32/63863_2.png) [@mtojek](https://discuss.elastic.co/u/mtojek)\
**Post date:** [December 24, 2021, 3:06pm UTC](https://discuss.elastic.co/t/filebeat-config-check-isnt-reliable/292807/2 "2021-12-24T15:06:27Z")

</div>

I admit I don't understand the problem here. Did you create `.yaml` files and filebeat complain that it expects `.yml` ones?

---

<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:** [January 21, 2022, 5:06pm UTC](https://discuss.elastic.co/t/filebeat-config-check-isnt-reliable/292807/3 "2022-01-21T17:06:33Z")

</div>

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