# New module - fields.yml and filebeat.template.json

**URL:** <https://discuss.elastic.co/t/new-module-fields-yml-and-filebeat-template-json/95352>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [August 1, 2017, 2:07pm UTC](https://discuss.elastic.co/t/new-module-fields-yml-and-filebeat-template-json/95352 "2017-08-01T14:07:43Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![edisuc](https://avatars.discourse-cdn.com/v4/letter/e/d6d6ee/32.png) [@edisuc](https://discuss.elastic.co/u/edisuc)\
**Post date:** [August 1, 2017, 2:07pm UTC](https://discuss.elastic.co/t/new-module-fields-yml-and-filebeat-template-json/95352/1 "2017-08-01T14:07:43Z")

</div>

Hi.

I'm creating a new module to parse proftpd's xferlog log file. I got the parsing ok, but I'm stuck with Elastic Search mappings. I realized, that the mappings are done by uploading the template file filebeat.template.json (I'm using a Debian package) which is automatically done by filebeat.

I created the fileds.yml for the module, but I can't figure out, how to get it inside the filebeat.template.json. Is there an automatic generator for this or do I have to manually change filebeat.template.json?

Thanx,  
Edi

---

<div class="post-metadata">

**Author:** ![kvch](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kvch/32/72058_2.png) [@kvch](https://discuss.elastic.co/u/kvch)\
**Post date:** [August 1, 2017, 8:20pm UTC](https://discuss.elastic.co/t/new-module-fields-yml-and-filebeat-template-json/95352/2 "2017-08-01T20:20:42Z")

</div>

Hi,

Generated files are produced when running `make update`. However, it is not available when you try to extend the installed deb package.  
In order to create a new module to Filebeat, you have to clone the Beats repository. There is a guide on how to create Filebeat modules: [https://www.elastic.co/guide/en/beats/filebeat/current/filebeat-modules-devguide.html](https://www.elastic.co/guide/en/beats/filebeat/current/filebeat-modules-devguide.html)

---

<div class="post-metadata">

**Author:** ![edisuc](https://avatars.discourse-cdn.com/v4/letter/e/d6d6ee/32.png) [@edisuc](https://discuss.elastic.co/u/edisuc)\
**Post date:** [August 2, 2017, 10:07am UTC](https://discuss.elastic.co/t/new-module-fields-yml-and-filebeat-template-json/95352/3 "2017-08-02T10:07:00Z")

</div>

Hi.

Thank you for the pointer. I was following the guide you suggested just didn't find out that I had to run `make update`.  
And another cardinal mistake on my part: I was working on the version 7.0.0-alpha1 instead of 5.5.1.

Thank you again. Everything is working now.

---

<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:** [August 30, 2017, 10:07am UTC](https://discuss.elastic.co/t/new-module-fields-yml-and-filebeat-template-json/95352/4 "2017-08-30T10:07:15Z")

</div>

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