# Adding metricbeat custom fields through a logstash instance not working for me

**URL:** https://discuss.elastic.co/t/adding-metricbeat-custom-fields-through-a-logstash-instance-not-working-for-me/167723
**Category:** Beats
**Tags:** metricbeat
**Created:** [February 9, 2019, 3:36pm UTC](https://discuss.elastic.co/t/adding-metricbeat-custom-fields-through-a-logstash-instance-not-working-for-me/167723 "2019-02-09T15:36:01Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![frankfoti](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/frankfoti/32/26965_2.png) [@frankfoti](https://discuss.elastic.co/u/frankfoti)
#### Post date: [February 9, 2019, 3:36pm UTC](https://discuss.elastic.co/t/adding-metricbeat-custom-fields-through-a-logstash-instance-not-working-for-me/167723/1 "2019-02-09T15:36:01Z")

</div>

The resulting index does work for adding one field but every configuration I tried does not work for more than one field. Below works for one field but not more than one. Not sure what I am missing. Maybe a logstash config?

meticbeat.config.modules:  
path: ${path.config}/modules.d/\*.yml  
fields: {environment: "rrc102-198819"}  
#fields: [environment: "rrc102-198819", newfield: "ffoti"]  
output.logstash:  
hosts: ["35.231.161.65:5041"]

---

<div class="post-metadata">

### Author: ![frankfoti](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/frankfoti/32/26965_2.png) [@frankfoti](https://discuss.elastic.co/u/frankfoti)
#### Post date: [February 11, 2019, 2:22pm UTC](https://discuss.elastic.co/t/adding-metricbeat-custom-fields-through-a-logstash-instance-not-working-for-me/167723/2 "2019-02-11T14:22:32Z")

</div>

This was a typo in the config. meticbeat instead of metricbeat.

---

<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: [February 11, 2019, 8:26pm UTC](https://discuss.elastic.co/t/adding-metricbeat-custom-fields-through-a-logstash-instance-not-working-for-me/167723/3 "2019-02-11T20:26:53Z")

</div>

Nice that you fixed it! 🙂

---

<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: [March 11, 2019, 8:27pm UTC](https://discuss.elastic.co/t/adding-metricbeat-custom-fields-through-a-logstash-instance-not-working-for-me/167723/4 "2019-03-11T20:27:01Z")

</div>

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