# Split is not working on multivalued string fields

**URL:** <https://discuss.elastic.co/t/split-is-not-working-on-multivalued-string-fields/256068>\
**Category:** Logstash\
**Created:** [November 20, 2020, 7:06am UTC](https://discuss.elastic.co/t/split-is-not-working-on-multivalued-string-fields/256068 "2020-11-20T07:06:08Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Abdul\_Aziz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/abdul_aziz/32/21243_2.png) [@Abdul\_Aziz](https://discuss.elastic.co/u/Abdul_Aziz)\
**Post date:** [November 20, 2020, 7:06am UTC](https://discuss.elastic.co/t/split-is-not-working-on-multivalued-string-fields/256068/1 "2020-11-20T07:06:08Z")

</div>

I have record like below in my text file;  
id=1  
name=Paint  
category=Decorative  
color=2345|red|5||  
color=123|green|4||  
color=345|yellow|8||  
REC$$

I wanted output (stdout) as below using logstash configuration;

"id" =\> "1"  
"name" =\> "Paint"  
"category" =\> "Decorative"  
"color" =\> "2345|red|5||"  
"color" =\> "123|green|4||"  
"color" =\> "345|yellow|8||"  
"colorName" =\> "red"  
"colorName" =\> "green"  
"colorName" =\> "yellow"

Please share your findings. Thanks in advance!

---

<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 18, 2020, 7:06am UTC](https://discuss.elastic.co/t/split-is-not-working-on-multivalued-string-fields/256068/2 "2020-12-18T07:06:20Z")

</div>

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