# Proper timestamp parsing

**URL:** <https://discuss.elastic.co/t/proper-timestamp-parsing/205293>\
**Category:** Logstash\
**Created:** [October 25, 2019, 3:25pm UTC](https://discuss.elastic.co/t/proper-timestamp-parsing/205293 "2019-10-25T15:25:09Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![nujojo](https://avatars.discourse-cdn.com/v4/letter/n/b19c9b/32.png) [@nujojo](https://discuss.elastic.co/u/nujojo)\
**Post date:** [October 25, 2019, 3:25pm UTC](https://discuss.elastic.co/t/proper-timestamp-parsing/205293/1 "2019-10-25T15:25:09Z")

</div>

Hi Guys,

I have a message with timestamp 2019-10-25T10:39:44.079331-04:00. I want to use grok filter and match that time, so later on can transfer to other format.  
What will be the best filter for match such timestamp.

Thanks,

---

<div class="post-metadata">

**Author:** ![chandra2037](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/chandra2037/32/72142_2.png) [@chandra2037](https://discuss.elastic.co/u/chandra2037)\
**Post date:** [October 25, 2019, 4:20pm UTC](https://discuss.elastic.co/t/proper-timestamp-parsing/205293/2 "2019-10-25T16:20:56Z")

</div>

You can use [Logstash Date](https://www.elastic.co/guide/en/logstash/current/plugins-filters-date.html) filter to parse the timestamp. Check the [match](https://www.elastic.co/guide/en/logstash/current/plugins-filters-date.html#plugins-filters-date-match) format options. By default target will be @timestamp, you can configure "target" to store the parsed timestamp into a different field.

---

<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:** [November 22, 2019, 4:21pm UTC](https://discuss.elastic.co/t/proper-timestamp-parsing/205293/3 "2019-11-22T16:21:00Z")

</div>

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