# Filebeat configuration in main config or seperate?

**URL:** <https://discuss.elastic.co/t/filebeat-configuration-in-main-config-or-seperate/215724>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [January 20, 2020, 11:49am UTC](https://discuss.elastic.co/t/filebeat-configuration-in-main-config-or-seperate/215724 "2020-01-20T11:49:40Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![hlamsc](https://avatars.discourse-cdn.com/v4/letter/h/eb9ed0/32.png) [@hlamsc](https://discuss.elastic.co/u/hlamsc)\
**Post date:** [January 20, 2020, 11:49am UTC](https://discuss.elastic.co/t/filebeat-configuration-in-main-config-or-seperate/215724/1 "2020-01-20T11:49:41Z")

</div>

Hello there,

we want to use the "close\_renamed: true" option for our filebeat. Im currently asking myself if I could set it "globally" in the filebeat.yml (so every config in conf.d is affected) or do I have to set it seperatly in every config file in conf.d?

Thanks and best regards

---

<div class="post-metadata">

**Author:** ![Kaiyan\_Sheng](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kaiyan_sheng/32/38247_2.png) [@Kaiyan\_Sheng](https://discuss.elastic.co/u/Kaiyan_Sheng)\
**Post date:** [January 27, 2020, 11:01pm UTC](https://discuss.elastic.co/t/filebeat-configuration-in-main-config-or-seperate/215724/2 "2020-01-27T23:01:31Z")

</div>

Sorry do you mean every config in modules.d? I don't think so. I think you can set `close_renamed: true` once in filebeat.yml under log input.

---

<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:** [February 24, 2020, 11:01pm UTC](https://discuss.elastic.co/t/filebeat-configuration-in-main-config-or-seperate/215724/3 "2020-02-24T23:01:33Z")

</div>

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