# Splitting tag values

**URL:** <https://discuss.elastic.co/t/splitting-tag-values/172827>\
**Category:** Kibana\
**Created:** [March 18, 2019, 4:29pm UTC](https://discuss.elastic.co/t/splitting-tag-values/172827 "2019-03-18T16:29:40Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tanmoy\_Chatterjee](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tanmoy_chatterjee/32/42260_2.png) [@Tanmoy\_Chatterjee](https://discuss.elastic.co/u/Tanmoy_Chatterjee)\
**Post date:** [March 18, 2019, 4:29pm UTC](https://discuss.elastic.co/t/splitting-tag-values/172827/1 "2019-03-18T16:29:40Z")

</div>

Hello,  
We try to create json objects at our end from the log files and send them to ingest\_pipelines and then visualize via Kibana. Most of the parts are working fine except the tags whcih is a multi-valued comma separated string.

The json document that we send to ingest\_pipeline is as follows:

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/7/a/7a15ec9afa019719effd93903ec2749114eb4e6c.png)

I have tried multiple ways to recreate the json document as you can see in the kibana - discover, however I am not able to see the split of the tags into individual entries.  
 ![image](https://us1.discourse-cdn.com/elastic/original/3X/b/c/bcc6f915e8794ef5952f2955d314340be38ed184.png)

can someone help me out as to how I should be passing my json to the elasticsearch so that the individual tag entries are split?

thanks  
Tanmoy

---

<div class="post-metadata">

**Author:** ![lukas](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/lukas/32/6812_2.png) [@lukas](https://discuss.elastic.co/u/lukas)\
**Post date:** [March 20, 2019, 5:05pm UTC](https://discuss.elastic.co/t/splitting-tag-values/172827/2 "2019-03-20T17:05:10Z")

</div>

No need to stringify the data, you should be able to ingest directly using the array.

i.e. `"tags": ["EMR", "hadoop-application"]` etc.

---

<div class="post-metadata">

**Author:** ![Tanmoy\_Chatterjee](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tanmoy_chatterjee/32/42260_2.png) [@Tanmoy\_Chatterjee](https://discuss.elastic.co/u/Tanmoy_Chatterjee)\
**Post date:** [March 21, 2019, 9:22am UTC](https://discuss.elastic.co/t/splitting-tag-values/172827/3 "2019-03-21T09:22:36Z")

</div>

thanks lukas. your tip helped. my mistake was to pass the tags as a string and not as an array...on changing the code it works fine

---

<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 18, 2019, 9:22am UTC](https://discuss.elastic.co/t/splitting-tag-values/172827/4 "2019-04-18T09:22:39Z")

</div>

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