# Generating metricbeat index pattern

**URL:** <https://discuss.elastic.co/t/generating-metricbeat-index-pattern/214682>\
**Category:** Beats\
**Tags:** metricbeat\
**Created:** [January 10, 2020, 10:53pm UTC](https://discuss.elastic.co/t/generating-metricbeat-index-pattern/214682 "2020-01-10T22:53:36Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![mladen](https://avatars.discourse-cdn.com/v4/letter/m/e36b37/32.png) [@mladen](https://discuss.elastic.co/u/mladen)\
**Post date:** [January 10, 2020, 10:53pm UTC](https://discuss.elastic.co/t/generating-metricbeat-index-pattern/214682/1 "2020-01-10T22:53:37Z")

</div>

Hello,

following beats developer guide I mange to install go. My goal is to change default metricbeat index pattern. I clone git repo, **run make command** & **make update**. Command **make update** created fields.yml file. I add my custom field to fields.yml and run again **make update** command. After this action I released that fields.yml file is rewritten.

Developer guide mention if you want to change index pattern just run **make update** command. So what I am doing wrong?

BR,  
Mladen

---

<div class="post-metadata">

**Author:** ![mladen](https://avatars.discourse-cdn.com/v4/letter/m/e36b37/32.png) [@mladen](https://discuss.elastic.co/u/mladen)\
**Post date:** [January 11, 2020, 8:32pm UTC](https://discuss.elastic.co/t/generating-metricbeat-index-pattern/214682/2 "2020-01-11T20:32:46Z")

</div>

I manage to solve problem on my own. If someone have the same problem procedure is following.

In my case I add fields to module system/process:

1. Git clone
2. Add custom fields to $GOPATH/src/github.com/elastic/beats/metricbeat/module/system/process/\_meta/fields.yml file
3. Run **make** command in metricbeat directory
4. Run **make update** command in metricbeat directory

and that's it 🙂.

BR,  
Mladen

---

<div class="post-metadata">

**Author:** ![Mario\_Castro](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mario_castro/32/35107_2.png) [@Mario\_Castro](https://discuss.elastic.co/u/Mario_Castro)\
**Post date:** [January 21, 2020, 1:59pm UTC](https://discuss.elastic.co/t/generating-metricbeat-index-pattern/214682/3 "2020-01-21T13:59:08Z")

</div>

Thank you for posting the solution!

---

<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:** [February 18, 2020, 1:59pm UTC](https://discuss.elastic.co/t/generating-metricbeat-index-pattern/214682/4 "2020-02-18T13:59:09Z")

</div>

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