# Split in filter overwrite the value

**URL:** <https://discuss.elastic.co/t/split-in-filter-overwrite-the-value/98773>\
**Category:** Elasticsearch\
**Created:** [August 30, 2017, 2:15am UTC](https://discuss.elastic.co/t/split-in-filter-overwrite-the-value/98773 "2017-08-30T02:15:15Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![vinay\_garg](https://avatars.discourse-cdn.com/v4/letter/v/8dc957/32.png) [@vinay\_garg](https://discuss.elastic.co/u/vinay_garg)\
**Post date:** [August 30, 2017, 2:15am UTC](https://discuss.elastic.co/t/split-in-filter-overwrite-the-value/98773/1 "2017-08-30T02:15:15Z")

</div>

Hi All,

I've define grok pattern and mutate in filter in logstash.  
if "Correlation\_Session\_0" in [CorrelationSession] {  
mutate {  
split =\> ["RequestInTime" , "\_"]  
add\_field =\> ["RequstInsplitime", "%{[RequestInTime][1]}" ]  
}  
}

Which is working fine. But when i've parse log file which having multiple line with RequestInTime value, RequstInsplitime value's overwrite. I can just see last value of RequstInsplitime.

How can i define permanent value for each document rather than overwrite them?

---

<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:** [September 27, 2017, 2:15am UTC](https://discuss.elastic.co/t/split-in-filter-overwrite-the-value/98773/2 "2017-09-27T02:15:44Z")

</div>

Closed on September 27, 2017, 2:15am UTC

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