# How to convert multiple time fields into Logstash timestamp format

**URL:** <https://discuss.elastic.co/t/how-to-convert-multiple-time-fields-into-logstash-timestamp-format/51365>\
**Category:** Logstash\
**Created:** [May 31, 2016, 3:25am UTC](https://discuss.elastic.co/t/how-to-convert-multiple-time-fields-into-logstash-timestamp-format/51365 "2016-05-31T03:25:24Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jpatani](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jpatani/32/9953_2.png) [@jpatani](https://discuss.elastic.co/u/jpatani)\
**Post date:** [May 31, 2016, 3:25am UTC](https://discuss.elastic.co/t/how-to-convert-multiple-time-fields-into-logstash-timestamp-format/51365/1 "2016-05-31T03:25:25Z")

</div>

I have two different date fields per entry. How do I translate both fields into Logstash' timestamp format.

Right now, only one of the time fields is going to "@timestamp"

Here are the date parts of the config file:

date {  
match =\> ["date1", "MM/dd/YYYY HH:mm"]

}  
date {  
match =\> ["date2", "MM/dd/YYYY HH:mm"]

}

---

<div class="post-metadata">

**Author:** ![jpatani](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jpatani/32/9953_2.png) [@jpatani](https://discuss.elastic.co/u/jpatani)\
**Post date:** [May 31, 2016, 3:30am UTC](https://discuss.elastic.co/t/how-to-convert-multiple-time-fields-into-logstash-timestamp-format/51365/2 "2016-05-31T03:30:03Z")

</div>

Apologies, just found the solution to this...

using target.

eg.

date {  
match =\> ["date1", "MM/dd/YYYY HH:mm"]  
target =\> "date1"  
}

---

<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, 4:55am UTC](https://discuss.elastic.co/t/how-to-convert-multiple-time-fields-into-logstash-timestamp-format/51365/3 "2017-07-06T04:55:26Z")

</div>


