# Logstash format for date format Dec 04 21:24:03.238 2018

**URL:** <https://discuss.elastic.co/t/logstash-format-for-date-format-dec-04-2103-238-2018/159508>\
**Category:** Logstash\
**Created:** [December 5, 2018, 10:20am UTC](https://discuss.elastic.co/t/logstash-format-for-date-format-dec-04-2103-238-2018/159508 "2018-12-05T10:20:35Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![manikandanid](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/manikandanid/32/91013_2.png) [@manikandanid](https://discuss.elastic.co/u/manikandanid)\
**Post date:** [December 5, 2018, 10:20am UTC](https://discuss.elastic.co/t/logstash-format-for-date-format-dec-04-2103-238-2018/159508/1 "2018-12-05T10:20:36Z")

</div>

Currently my log file contains the date format in Dec 04 21:24:03.238 2018 and the loglines are being tagged as dateparsefailure. Following is the date filter i have added in my logstash conf

date{  
match =\> ["LogDateTime","yyyy-MM-dd HH:mm:ss","MMM dd hh:mm:ss.SSS yyyy","MM/dd/yyyy hh:mm:ss.SSS aa", "yyyy-MM-dd HH:mm:ss,SSS", "yyyy-MM-dd HH:mm:ss.SSS"]  
timezone =\> "Asia/Kolkata"  
target =\> "@timestamp"  
}

Any idea why this is being tagged as dateparsefailure ???

---

<div class="post-metadata">

**Author:** ![AquaX](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/aquax/32/92006_2.png) [@AquaX](https://discuss.elastic.co/u/AquaX)\
**Post date:** [December 6, 2018, 2:28pm UTC](https://discuss.elastic.co/t/logstash-format-for-date-format-dec-04-2103-238-2018/159508/2 "2018-12-06T14:28:16Z")

</div>

> [@manikandanid](#):
>
> "MMM dd hh:mm:ss.SSS yyyy"

It looks like this pattern should match that date format.  
Try removing all other patterns and just use this one.

---

<div class="post-metadata">

**Author:** ![manikandanid](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/manikandanid/32/91013_2.png) [@manikandanid](https://discuss.elastic.co/u/manikandanid)\
**Post date:** [December 7, 2018, 5:41am UTC](https://discuss.elastic.co/t/logstash-format-for-date-format-dec-04-2103-238-2018/159508/3 "2018-12-07T05:41:34Z")

</div>

Thanks Andy for the reply. You were right the pattern you mentioned matched but it should contain HH instead of hh. I did the change and looks like it worked. Will keep you posted if the problem appears again.

---

<div class="post-metadata">

**Author:** ![AquaX](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/aquax/32/92006_2.png) [@AquaX](https://discuss.elastic.co/u/AquaX)\
**Post date:** [December 7, 2018, 4:45pm UTC](https://discuss.elastic.co/t/logstash-format-for-date-format-dec-04-2103-238-2018/159508/4 "2018-12-07T16:45:09Z")

</div>

ARgh! Of course!  
Glad you found it 🙂

---

<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 4, 2019, 4:45pm UTC](https://discuss.elastic.co/t/logstash-format-for-date-format-dec-04-2103-238-2018/159508/5 "2019-01-04T16:45:14Z")

</div>

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