# Customize fields.yml according to a specific module

**URL:** <https://discuss.elastic.co/t/customize-fields-yml-according-to-a-specific-module/181705>\
**Category:** Beats\
**Tags:** metricbeat\
**Created:** [May 19, 2019, 8:15am UTC](https://discuss.elastic.co/t/customize-fields-yml-according-to-a-specific-module/181705 "2019-05-19T08:15:13Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![testik](https://avatars.discourse-cdn.com/v4/letter/t/ce73a5/32.png) [@testik](https://discuss.elastic.co/u/testik)\
**Post date:** [May 19, 2019, 8:15am UTC](https://discuss.elastic.co/t/customize-fields-yml-according-to-a-specific-module/181705/1 "2019-05-19T08:15:13Z")

</div>

Hello all,  
Currently I`m trying configuring the metricbeat only for system basic data - such as: cpu, memory, disk usage etc....  
I run the command: ./metricbeat modules list  
and saw only the system module is enabled as I wanted.  
However when accessing the elastic-search relevant pattern I noticed there are more than 1800 fields which are not relevant to the system module. I changed the fields.yml file and removed from it the keys which were not relevant,  
now it includes the following keys - common, beat, cloud, docker, host, kubernetes, system. However when I access the elasticsearch, the number of fields still stay on more than 1800 fields. I will be grateful to get some help. Thanks.

---

<div class="post-metadata">

**Author:** ![Kaiyan\_Sheng](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kaiyan_sheng/32/38247_2.png) [@Kaiyan\_Sheng](https://discuss.elastic.co/u/Kaiyan_Sheng)\
**Post date:** [May 28, 2019, 3:36pm UTC](https://discuss.elastic.co/t/customize-fields-yml-according-to-a-specific-module/181705/2 "2019-05-28T15:36:10Z")

</div>

Hi @testik, sorry for the late response. To my understanding, this is actually how metricbeat works by default, which loads all the fields into ES. Maybe you can try to specify `setup.template.fields: "path/to/fields.yml"` and `setup.template.overwrite: true` in metricbeat.yml to overwrite it. Please see [https://www.elastic.co/guide/en/beats/metricbeat/current/metricbeat-template.html#load-template-auto](https://www.elastic.co/guide/en/beats/metricbeat/current/metricbeat-template.html#load-template-auto) for more details.

---

<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 25, 2019, 3:36pm UTC](https://discuss.elastic.co/t/customize-fields-yml-according-to-a-specific-module/181705/3 "2019-06-25T15:36:13Z")

</div>

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