# How to add 'key:{a:b,c:d}' by using add\_field

**URL:** <https://discuss.elastic.co/t/how-to-add-key-a-b-c-d-by-using-add-field/209261>\
**Category:** Logstash\
**Created:** [November 25, 2019, 9:29am UTC](https://discuss.elastic.co/t/how-to-add-key-a-b-c-d-by-using-add-field/209261 "2019-11-25T09:29:15Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![muguaofyu](https://avatars.discourse-cdn.com/v4/letter/m/dec6dc/32.png) [@muguaofyu](https://discuss.elastic.co/u/muguaofyu)\
**Post date:** [November 25, 2019, 9:29am UTC](https://discuss.elastic.co/t/how-to-add-key-a-b-c-d-by-using-add-field/209261/1 "2019-11-25T09:29:15Z")

</div>

i want to add 'key:{a:b,c:d}' to es by using add\_field.  
how to achieve it?

![TIM%E5%9B%BE%E7%89%8720191125172603](https://us1.discourse-cdn.com/elastic/original/3X/5/9/5944cbccd99631ad32cb2bd67dcebbd4afe0b5ea.png)  
i want to see the above.

---

<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:** [December 23, 2019, 9:29am UTC](https://discuss.elastic.co/t/how-to-add-key-a-b-c-d-by-using-add-field/209261/2 "2019-12-23T09:29:15Z")

</div>

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