# Ability to supply path to custom module?

**URL:** <https://discuss.elastic.co/t/ability-to-supply-path-to-custom-module/271615>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [April 29, 2021, 10:08am UTC](https://discuss.elastic.co/t/ability-to-supply-path-to-custom-module/271615 "2021-04-29T10:08:44Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![hazcod](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/hazcod/32/67689_2.png) [@hazcod](https://discuss.elastic.co/u/hazcod)\
**Post date:** [April 29, 2021, 10:08am UTC](https://discuss.elastic.co/t/ability-to-supply-path-to-custom-module/271615/1 "2021-04-29T10:08:44Z")

</div>

Hi,

So we developed a custom filebeat submodule which we'd like to use for filebeat.  
However there seems no way to specify the path to this module?  
We cannot copy it into /usr/share/filebeat/modules since that gets overwritten during installation.

Any ideas? Thank you.

---

<div class="post-metadata">

**Author:** ![legoguy1000](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/legoguy1000/32/54301_2.png) [@legoguy1000](https://discuss.elastic.co/u/legoguy1000)\
**Post date:** [April 29, 2021, 5:09pm UTC](https://discuss.elastic.co/t/ability-to-supply-path-to-custom-module/271615/2 "2021-04-29T17:09:22Z")

</div>

you can clone the beats repo and add your module and build a custom binary to run.

---

<div class="post-metadata">

**Author:** ![hazcod](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/hazcod/32/67689_2.png) [@hazcod](https://discuss.elastic.co/u/hazcod)\
**Post date:** [May 7, 2021, 5:40am UTC](https://discuss.elastic.co/t/ability-to-supply-path-to-custom-module/271615/3 "2021-05-07T05:40:11Z")

</div>

I've found that if I rename it to a module directory that doesn't exit yet, it doesn't get overwritten.

---

<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:** [June 4, 2021, 7:40am UTC](https://discuss.elastic.co/t/ability-to-supply-path-to-custom-module/271615/4 "2021-06-04T07:40:34Z")

</div>

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