# Does "filebeat setup -e" need to be run every time I enable a module, or only once for all modules?

**URL:** <https://discuss.elastic.co/t/does-filebeat-setup-e-need-to-be-run-every-time-i-enable-a-module-or-only-once-for-all-modules/335557>\
**Category:** Elasticsearch\
**Created:** [June 8, 2023, 4:54pm UTC](https://discuss.elastic.co/t/does-filebeat-setup-e-need-to-be-run-every-time-i-enable-a-module-or-only-once-for-all-modules/335557 "2023-06-08T16:54:39Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![andrew.klaassen](https://avatars.discourse-cdn.com/v4/letter/a/6f9a4e/32.png) [@andrew.klaassen](https://discuss.elastic.co/u/andrew.klaassen)\
**Post date:** [June 8, 2023, 4:54pm UTC](https://discuss.elastic.co/t/does-filebeat-setup-e-need-to-be-run-every-time-i-enable-a-module-or-only-once-for-all-modules/335557/1 "2023-06-08T16:54:39Z")

</div>

So far I've been running "filebeat setup -e" every time I enable a new filebeat module. However, looking at its output, it seems to be setting stuff up for all of my modules, even the disabled ones.

Do I need to run "filebeat setup -e" every time I enable a new filebeat module, or only when I install it the first time or upgrade to a new version?

Thanks.

---

<div class="post-metadata">

**Author:** ![stephenb](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stephenb/32/40856_2.png) [@stephenb](https://discuss.elastic.co/u/stephenb)\
**Post date:** [June 8, 2023, 5:48pm UTC](https://discuss.elastic.co/t/does-filebeat-setup-e-need-to-be-run-every-time-i-enable-a-module-or-only-once-for-all-modules/335557/2 "2023-06-08T17:48:59Z")

</div>

See this... (ha) I thought we answered this.

> [@When/how often/from where does "filebeat setup -e" need to be run?](https://discuss.elastic.co/t/when-how-often-from-where-does-filebeat-setup-e-need-to-be-run/335246/2):
>
> Hi @andrew.klaassen Yes, #3 is a pretty good strategy and I see it often used in larger / automated environmemtns. I think of this Filebeat Setup Host / Install. You should run setup whenever enabling a new module or when deploying a new version of filebeat across your landscape The version part is equally important as the templates, pipelines, dashboards can be updated, and templates and pipelines definitions include the version number. To be clear you do not need to run setup on every h…

> [@andrew.klaassen](#):
>
> Do I need to run "filebeat setup -e" every time I enable a new filebeat module, or only when I install it the first time or upgrade to a new version?

Yes, run setup when a new module and / or you change the version.

Yes some of all the assets are loaded when you run setup, but not all ... (which actually may have changed in 8.recent looks like 8.recent loads all the assets but that was NOT the behavior in 7.X as only the pipeline for enabled modules got loaded. )

I actually think we may be reducing/changing that behavior in the future so yes run setup with each new module to be safe..

So Yes run with each new module. 🙂

---

<div class="post-metadata">

**Author:** ![andrew.klaassen](https://avatars.discourse-cdn.com/v4/letter/a/6f9a4e/32.png) [@andrew.klaassen](https://discuss.elastic.co/u/andrew.klaassen)\
**Post date:** [June 9, 2023, 2:25pm UTC](https://discuss.elastic.co/t/does-filebeat-setup-e-need-to-be-run-every-time-i-enable-a-module-or-only-once-for-all-modules/335557/3 "2023-06-09T14:25:22Z")

</div>

Thanks. Yes, I see now that you did answer it already. 🙂 I just got thrown off by the behaviour you're mentioning with recent 8 versions.

Thanks again!

---

<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 7, 2023, 2:25pm UTC](https://discuss.elastic.co/t/does-filebeat-setup-e-need-to-be-run-every-time-i-enable-a-module-or-only-once-for-all-modules/335557/4 "2023-07-07T14:25:41Z")

</div>

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