# How can I add metaFields by commandline

**URL:** <https://discuss.elastic.co/t/how-can-i-add-metafields-by-commandline/79706>\
**Category:** Kibana\
**Created:** [March 23, 2017, 8:29am UTC](https://discuss.elastic.co/t/how-can-i-add-metafields-by-commandline/79706 "2017-03-23T08:29:27Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![mathias](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mathias/32/23176_2.png) [@mathias](https://discuss.elastic.co/u/mathias)\
**Post date:** [March 23, 2017, 8:29am UTC](https://discuss.elastic.co/t/how-can-i-add-metafields-by-commandline/79706/1 "2017-03-23T08:29:28Z")

</div>

Hi,

I would like to add metaFields using curl command.

How can I do this?

Br Mathias

---

<div class="post-metadata">

**Author:** ![cjcenizal](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/cjcenizal/32/11216_2.png) [@cjcenizal](https://discuss.elastic.co/u/cjcenizal)\
**Post date:** [March 23, 2017, 5:43pm UTC](https://discuss.elastic.co/t/how-can-i-add-metafields-by-commandline/79706/2 "2017-03-23T17:43:53Z")

</div>

Hi Mathias, which meta-fields are you trying to add? Here is a list of available meta-fields: [https://www.elastic.co/guide/en/elasticsearch/reference/current/mapping-fields.html](https://www.elastic.co/guide/en/elasticsearch/reference/current/mapping-fields.html). At that link, you can also find examples of how to use curl to specify the `_parent`, `_routing`, and `_meta` meta-fields.

Thanks,  
CJ

---

<div class="post-metadata">

**Author:** ![mathias](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mathias/32/23176_2.png) [@mathias](https://discuss.elastic.co/u/mathias)\
**Post date:** [March 24, 2017, 6:39pm UTC](https://discuss.elastic.co/t/how-can-i-add-metafields-by-commandline/79706/3 "2017-03-24T18:39:27Z")

</div>

Hi CJ,

I tried to use dockbeat's dashboard.  
These dahsboards uses fileds called net.xxxx  
Since the net fileds were not created in the my events I thought I could work around the errors in the dashboard by defining those net fileds as meta fileds.

Unforunately this did not work since the meta fileds never showed up in the list of fields in visualization.

I found similar dashboard using metricbeat so I decided to go for this instead.

Br Mathias

---

<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:** [April 21, 2017, 6:39pm UTC](https://discuss.elastic.co/t/how-can-i-add-metafields-by-commandline/79706/4 "2017-04-21T18:39:26Z")

</div>

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