# Parse this date format? (Oct 3 11:32:48)

**URL:** <https://discuss.elastic.co/t/parse-this-date-format-oct-3-1148/151275>\
**Category:** Logstash\
**Created:** [October 5, 2018, 7:51pm UTC](https://discuss.elastic.co/t/parse-this-date-format-oct-3-1148/151275 "2018-10-05T19:51:30Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jbrowe](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jbrowe/32/99821_2.png) [@jbrowe](https://discuss.elastic.co/u/jbrowe)\
**Post date:** [October 5, 2018, 7:51pm UTC](https://discuss.elastic.co/t/parse-this-date-format-oct-3-1148/151275/1 "2018-10-05T19:51:30Z")

</div>

I can parse log file dates like:

1. "Oct 3 11:32:48" with "MMM d HH:mm:ss"

2. "Oct 03 11:32:48" with "MMM dd HH:mm:ss"

Now i have:

1. "Oct 3 11:32:48" (notice there are two spaces before the single digit month-day.)

Is there a parsing pattern that could work here?

- Jeff

---

<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 9, 2018, 8:14pm UTC](https://discuss.elastic.co/t/parse-this-date-format-oct-3-1148/151275/2 "2018-10-09T20:14:14Z")

</div>

You need both date patterns above. The date filter can list multiple patterns in the same `match` line so that's not a problem.

---

<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 6, 2018, 8:14pm UTC](https://discuss.elastic.co/t/parse-this-date-format-oct-3-1148/151275/3 "2018-11-06T20:14:15Z")

</div>

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