# 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:** 1\
**Showing post:** 2

<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. 🙂

---

_[View the full topic](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)._
