# Date parsing

**URL:** <https://discuss.elastic.co/t/date-parsing/111557>\
**Category:** Logstash\
**Created:** [December 13, 2017, 12:36pm UTC](https://discuss.elastic.co/t/date-parsing/111557 "2017-12-13T12:36:31Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![cilzzz](https://avatars.discourse-cdn.com/v4/letter/c/c67d28/32.png) [@cilzzz](https://discuss.elastic.co/u/cilzzz)\
**Post date:** [December 13, 2017, 12:36pm UTC](https://discuss.elastic.co/t/date-parsing/111557/1 "2017-12-13T12:36:31Z")

</div>

Hello,

i have a logfile generated by machine and i need to parse the date using logstash  
in the date field the date format is for example 12/05/2017 11:49:05 and 4/Feb/2017 10:05:33  
for the first format my parser worked

```
date {
          match => ["DATE", "dd/MM/yyyy HH:mm:ss"]
          timezone => "Europe/Paris"

```

}

for the second format how can i parse it like the first

thank you!

---

<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:** [December 13, 2017, 12:49pm UTC](https://discuss.elastic.co/t/date-parsing/111557/2 "2017-12-13T12:49:17Z")

</div>

Use "d/MMM/yyyy HH:mm:ss" and "dd/MMM/yyyy HH:mm:ss" as your date patterns (the date filter accepts multiple patterns).

---

<div class="post-metadata">

**Author:** ![cilzzz](https://avatars.discourse-cdn.com/v4/letter/c/c67d28/32.png) [@cilzzz](https://discuss.elastic.co/u/cilzzz)\
**Post date:** [December 13, 2017, 1:44pm UTC](https://discuss.elastic.co/t/date-parsing/111557/3 "2017-12-13T13:44:55Z")

</div>

Thank you !

---

<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:** [January 10, 2018, 1:44pm UTC](https://discuss.elastic.co/t/date-parsing/111557/4 "2018-01-10T13:44:59Z")

</div>

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