# Fields in newly created filebeat module

**URL:** <https://discuss.elastic.co/t/fields-in-newly-created-filebeat-module/178447>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [April 25, 2019, 11:57am UTC](https://discuss.elastic.co/t/fields-in-newly-created-filebeat-module/178447 "2019-04-25T11:57:08Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rolf\_Anderegg](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rolf_anderegg/32/45010_2.png) [@Rolf\_Anderegg](https://discuss.elastic.co/u/Rolf_Anderegg)\
**Post date:** [April 25, 2019, 11:57am UTC](https://discuss.elastic.co/t/fields-in-newly-created-filebeat-module/178447/1 "2019-04-25T11:57:08Z")

</div>

Im trying to create my own filebeat. I want to work with the direct elasticbeat ingest Pipeline (no Logstash in between).

I downloaded the filebeat development package from github and programmed my filebeat module. I made the GROK for the ingest pipeline tested it with the "\_ingest/pipeline/\_simulate" and with the make command i got the "mymodule/access/\_meta/fields.yml".

When i copy this module now to an existing filebeat installation (copy the module folder to /usr/share/filebeat/modules/", newly created index indexes the data, but dont see the fields as i have defined them in my \_meta/fields.yml.

The indexed document adds all fields as "keyword" and if i look at the "\_template/filebeat-7.0.0" my definitions are also not there (i assume thats why my fields all get indexed as keyword).

Also if i delete all indicies from elasticseach and the "\_template/filebeat-7.0.0" my fields dont show up after automatic recreation.

As it seems the Global "/etc/filebeat/fields.yml" is the only structure that is transferred to elasticseach upon first indexing from a filebeat.

Is there any way to add fields from my module to the index definition without modifying the Global "/etc/filebeat/fields.yml" or is there another way to acomplish this?

TIA Rolf

---

<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:** [May 23, 2019, 11:57am UTC](https://discuss.elastic.co/t/fields-in-newly-created-filebeat-module/178447/2 "2019-05-23T11:57:12Z")

</div>

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