# Filebeat export template doesnt have custom module fields on the generated file

**URL:** <https://discuss.elastic.co/t/filebeat-export-template-doesnt-have-custom-module-fields-on-the-generated-file/181246>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [May 15, 2019, 5:24pm UTC](https://discuss.elastic.co/t/filebeat-export-template-doesnt-have-custom-module-fields-on-the-generated-file/181246 "2019-05-15T17:24:07Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Daniel\_Diogo](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/daniel_diogo/32/46244_2.png) [@Daniel\_Diogo](https://discuss.elastic.co/u/Daniel_Diogo)\
**Post date:** [May 15, 2019, 5:24pm UTC](https://discuss.elastic.co/t/filebeat-export-template-doesnt-have-custom-module-fields-on-the-generated-file/181246/1 "2019-05-15T17:24:07Z")

</div>

Hey,

I developed a custom filebeat module to deal with my logs, that is working correctly, the data are being sent to elastic well splitted.

On the fields.yml file I added the custom fields for the module and when generating they are ignored.

anyone knows what is going on with it?

Thanks in advance

---

<div class="post-metadata">

**Author:** ![adrisr](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/adrisr/32/25423_2.png) [@adrisr](https://discuss.elastic.co/u/adrisr)\
**Post date:** [May 15, 2019, 6:07pm UTC](https://discuss.elastic.co/t/filebeat-export-template-doesnt-have-custom-module-fields-on-the-generated-file/181246/2 "2019-05-15T18:07:48Z")

</div>

For a Filebeat module, you add your fields to `module/<your module>/_meta/fields.yml`.

Then, for those fields to be picked up, you need to run `mage update` before building the Beat.

---

<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 12, 2019, 6:07pm UTC](https://discuss.elastic.co/t/filebeat-export-template-doesnt-have-custom-module-fields-on-the-generated-file/181246/3 "2019-06-12T18:07:49Z")

</div>

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