# Need to split in form of key & value

**URL:** <https://discuss.elastic.co/t/need-to-split-in-form-of-key-value/333218>\
**Category:** Logstash\
**Created:** [May 11, 2023, 2:40pm UTC](https://discuss.elastic.co/t/need-to-split-in-form-of-key-value/333218 "2023-05-11T14:40:09Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ZERO\_COOL](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/zero_cool/32/120920_2.png) [@ZERO\_COOL](https://discuss.elastic.co/u/ZERO_COOL)\
**Post date:** [May 11, 2023, 2:40pm UTC](https://discuss.elastic.co/t/need-to-split-in-form-of-key-value/333218/1 "2023-05-11T14:40:09Z")

</div>

I am getting event as below.  
"rusage" =\> [  
[0] "",  
[1] "[mem=10000,mem=5000,VCS-BASE-RUNTIME=1]"  
],

I want the value of mem as res\_mem higher one among two keys with "mem" as new field.

output:  
{  
res\_mem = 10000  
}

---

<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:** [June 8, 2023, 2:40pm UTC](https://discuss.elastic.co/t/need-to-split-in-form-of-key-value/333218/2 "2023-06-08T14:40:26Z")

</div>

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