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?
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:
- Git clone
- Add custom fields to $GOPATH/src/github.com/elastic/beats/metricbeat/module/system/process/_meta/fields.yml file
- Run make command in metricbeat directory
- Run make update command in metricbeat directory
and that's it .
Thank you for posting the solution!
This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.