# Filebeat: filebeat.config.prospectors is not working in 6.2.1

**URL:** <https://discuss.elastic.co/t/filebeat-filebeat-config-prospectors-is-not-working-in-6-2-1/122867>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [March 7, 2018, 11:17am UTC](https://discuss.elastic.co/t/filebeat-filebeat-config-prospectors-is-not-working-in-6-2-1/122867 "2018-03-07T11:17:56Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![mruthyu](https://avatars.discourse-cdn.com/v4/letter/m/bb73d2/32.png) [@mruthyu](https://discuss.elastic.co/u/mruthyu)\
**Post date:** [March 7, 2018, 11:17am UTC](https://discuss.elastic.co/t/filebeat-filebeat-config-prospectors-is-not-working-in-6-2-1/122867/1 "2018-03-07T11:17:56Z")

</div>

I see the following message when the config\_dir is used. So when I configured filebeat.config.prospectors it is not working and I have to revert back to config\_dir itslef to get it working.

DEPRECATED: config\_dir is deprecated. Use `filebeat.config.prospectors` instead. Will be removed in version: 7.0.0

Also when I checked the latest documentation still I see the config\_dir details itself instead of filebeat.config.prospectors configuration option.

[https://www.elastic.co/guide/en/beats/filebeat/current/configuration-general-options.html](https://www.elastic.co/guide/en/beats/filebeat/current/configuration-general-options.html)  
_config\_dir_  
_The full path to the directory that contains additional prospector configuration files. Each configuration file must end with .yml. Each config file must also specify the full Filebeat config hierarchy even though only the prospector part of the file is processed. All global options, such as registry\_file, are ignored._

_The config\_dir option MUST point to a directory other than the directory where the main Filebeat config file resides._

_If the specified path is not absolute, it is considered relative to the configuration path. See the Directory layout section for details._

_filebeat.config\_dir: path/to/configs_

---

<div class="post-metadata">

**Author:** ![mruthyu](https://avatars.discourse-cdn.com/v4/letter/m/bb73d2/32.png) [@mruthyu](https://discuss.elastic.co/u/mruthyu)\
**Post date:** [March 12, 2018, 7:51am UTC](https://discuss.elastic.co/t/filebeat-filebeat-config-prospectors-is-not-working-in-6-2-1/122867/2 "2018-03-12T07:51:27Z")

</div>

Can someone please provide the requested clarification? Thanks.

---

<div class="post-metadata">

**Author:** ![ruflin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ruflin/32/3116_2.png) [@ruflin](https://discuss.elastic.co/u/ruflin)\
**Post date:** [March 12, 2018, 8:25am UTC](https://discuss.elastic.co/t/filebeat-filebeat-config-prospectors-is-not-working-in-6-2-1/122867/3 "2018-03-12T08:25:16Z")

</div>

Can you share the config you used with `filebeat.config.prospectors` which did not work?

For the docs: Yes we should update our docs here. Could you open an issue for that on Github?

---

<div class="post-metadata">

**Author:** ![mruthyu](https://avatars.discourse-cdn.com/v4/letter/m/bb73d2/32.png) [@mruthyu](https://discuss.elastic.co/u/mruthyu)\
**Post date:** [March 20, 2018, 9:47am UTC](https://discuss.elastic.co/t/filebeat-filebeat-config-prospectors-is-not-working-in-6-2-1/122867/4 "2018-03-20T09:47:25Z")

</div>

```
filebeat:
  registry_file: /project/filebeat/data/registry
  config.prospectors: /project/filebeat/config/conf.d

shipper:

output.console:
  enabled: true
  pretty: true

logging:
  to_files: true
  files:
    path: /project/filebeat/logs
    name: filebeat.log
    rotateeverybytes: 10485760
    keepfiles: 10
  level: info

path:
  home: /opt/filebeat
  conf: /project/filebeat/config
  data: /project/filebeat/data
  logs: /project/filebeat/logs
```

---

<div class="post-metadata">

**Author:** ![ruflin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ruflin/32/3116_2.png) [@ruflin](https://discuss.elastic.co/u/ruflin)\
**Post date:** [March 21, 2018, 8:08am UTC](https://discuss.elastic.co/t/filebeat-filebeat-config-prospectors-is-not-working-in-6-2-1/122867/5 "2018-03-21T08:08:28Z")

</div>

As you can see in [https://www.elastic.co/guide/en/beats/filebeat/6.2/filebeat-configuration-reloading.html#load-prospector-config](https://www.elastic.co/guide/en/beats/filebeat/6.2/filebeat-configuration-reloading.html#load-prospector-config) you must configure a pattern and not only the path to the directory. Replace `/project/filebeat/config/conf.d` by `/project/filebeat/config/conf.d/*`.

---

<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:** [April 18, 2018, 8:09am UTC](https://discuss.elastic.co/t/filebeat-filebeat-config-prospectors-is-not-working-in-6-2-1/122867/6 "2018-04-18T08:09:08Z")

</div>

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