# Any way to set defaults to all filebeat modules?

**URL:** <https://discuss.elastic.co/t/any-way-to-set-defaults-to-all-filebeat-modules/236747>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [June 11, 2020, 4:25pm UTC](https://discuss.elastic.co/t/any-way-to-set-defaults-to-all-filebeat-modules/236747 "2020-06-11T16:25:57Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![arcade](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/arcade/32/70176_2.png) [@arcade](https://discuss.elastic.co/u/arcade)\
**Post date:** [June 11, 2020, 4:25pm UTC](https://discuss.elastic.co/t/any-way-to-set-defaults-to-all-filebeat-modules/236747/1 "2020-06-11T16:25:57Z")

</div>

Hello.

I'm collecting a number of logs, and some of them are rotated through logrotate with `delaycompress` option (file is renamed but sits there for 24h). Those files are collected and opened by filebeat, but it never closes them.

I know I can reconfigure `log` to `close_inactive` files, but alas this happens to modules. And I don't see any clear way to set defaults to all modules at once.

Is there a way to set defaults for all `log` instances or is there any other way to make filebeat stop waiting on removed files?

Thanks in advance.

---

<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:** [July 9, 2020, 6:26pm UTC](https://discuss.elastic.co/t/any-way-to-set-defaults-to-all-filebeat-modules/236747/2 "2020-07-09T18:26:04Z")

</div>

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