# Indexing date from a field with two entries

**URL:** <https://discuss.elastic.co/t/indexing-date-from-a-field-with-two-entries/33064>\
**Category:** Logstash\
**Created:** [October 27, 2015, 10:59am UTC](https://discuss.elastic.co/t/indexing-date-from-a-field-with-two-entries/33064 "2015-10-27T10:59:36Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![aviv.ratzon](https://avatars.discourse-cdn.com/v4/letter/a/ed655f/32.png) [@aviv.ratzon](https://discuss.elastic.co/u/aviv.ratzon)\
**Post date:** [October 27, 2015, 10:59am UTC](https://discuss.elastic.co/t/indexing-date-from-a-field-with-two-entries/33064/1 "2015-10-27T10:59:36Z")

</div>

Hello,  
I am parsing a log file and got to a point where I have this field:

```
"Date":["27/10/2015","10:09:01"]

```

I can't seem to preform a date filter on it in any way, I've tried different configurations and nothing. I also couldn't find a way to merge the two entries into one.  
any help will be greatly appreciated : )

---

<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:** [October 27, 2015, 6:52pm UTC](https://discuss.elastic.co/t/indexing-date-from-a-field-with-two-entries/33064/2 "2015-10-27T18:52:50Z")

</div>

See below on how to merge fields. To access the elements of the array you have, use `%{[Date][0]}` and `%{[Date][1]}`.

> <https://stackoverflow.com/questions/28879131/how-to-generate-timestamp-in-logstash-by-combining-two-fields-columns-of-inpu/28882096#28882096>

---

<div class="post-metadata">

**Author:** ![aviv.ratzon](https://avatars.discourse-cdn.com/v4/letter/a/ed655f/32.png) [@aviv.ratzon](https://discuss.elastic.co/u/aviv.ratzon)\
**Post date:** [October 28, 2015, 8:58am UTC](https://discuss.elastic.co/t/indexing-date-from-a-field-with-two-entries/33064/3 "2015-10-28T08:58:00Z")

</div>

great, much appreciated!

---

<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:** [July 6, 2017, 5:25am UTC](https://discuss.elastic.co/t/indexing-date-from-a-field-with-two-entries/33064/4 "2017-07-06T05:25:06Z")

</div>


