# Getting two values in one key in kv filter

**URL:** <https://discuss.elastic.co/t/getting-two-values-in-one-key-in-kv-filter/139555>\
**Category:** Logstash\
**Created:** [July 11, 2018, 12:02pm UTC](https://discuss.elastic.co/t/getting-two-values-in-one-key-in-kv-filter/139555 "2018-07-11T12:02:28Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sakshi\_Aggarwal](https://avatars.discourse-cdn.com/v4/letter/s/9e8a1a/32.png) [@Sakshi\_Aggarwal](https://discuss.elastic.co/u/Sakshi_Aggarwal)\
**Post date:** [July 11, 2018, 12:02pm UTC](https://discuss.elastic.co/t/getting-two-values-in-one-key-in-kv-filter/139555/1 "2018-07-11T12:02:28Z")

</div>

Greetings Everyone! 🙂

I have attached my output.

 ![forum](https://us1.discourse-cdn.com/elastic/original/3X/e/9/e97a3942f27bd2cd654040eaa2d236d422b17d7f.png)

I have got two Timestamps in my Log file , both of different format .

Please help me with the code so that I can achieve either of the following :

1. To eliminate one value and parse it using date filter .
2. To parse both the values and target the filtered values to @timestamp so that I can visualize in order to create Dashboard.

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [July 11, 2018, 12:13pm UTC](https://discuss.elastic.co/t/getting-two-values-in-one-key-in-kv-filter/139555/2 "2018-07-11T12:13:31Z")

</div>

Well, we don't know the origin of the two timestamps so we can't give any advice about which of them should be kept. Just don't try to make `@timestamp` an array of timestamps.

---

<div class="post-metadata">

**Author:** ![Sakshi\_Aggarwal](https://avatars.discourse-cdn.com/v4/letter/s/9e8a1a/32.png) [@Sakshi\_Aggarwal](https://discuss.elastic.co/u/Sakshi_Aggarwal)\
**Post date:** [July 12, 2018, 6:44am UTC](https://discuss.elastic.co/t/getting-two-values-in-one-key-in-kv-filter/139555/3 "2018-07-12T06:44:00Z")

</div>

Okay ,Thanks.  
I will only keep one of the values of the timestamp array

---

<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:** [August 9, 2018, 6:44am UTC](https://discuss.elastic.co/t/getting-two-values-in-one-key-in-kv-filter/139555/4 "2018-08-09T06:44:03Z")

</div>

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