# Date filter \_dateparsefailure

**URL:** <https://discuss.elastic.co/t/date-filter-dateparsefailure/123843>\
**Category:** Logstash\
**Created:** [March 14, 2018, 6:32am UTC](https://discuss.elastic.co/t/date-filter-dateparsefailure/123843 "2018-03-14T06:32:30Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![elasticheart](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/elasticheart/32/65189_2.png) [@elasticheart](https://discuss.elastic.co/u/elasticheart)\
**Post date:** [March 14, 2018, 6:32am UTC](https://discuss.elastic.co/t/date-filter-dateparsefailure/123843/1 "2018-03-14T06:32:30Z")

</div>

Hi,

I am using ELK GA 5.0.0. I am consuming from Kafka and I have a message in which has date like `05-Feb-2018:10:39:33 +0000`. I used grok filter to parse date like;

```
date {
	match => ["datetime", "dd-MM-YYYY:HH:mm:ss Z"]
	timezone => "GMT"
	target => "@timestamp"
}

```

but it is creating `_dateparsefailure`. I refered this page [https://github.com/logstash-plugins/logstash-patterns-core/blob/master/patterns/grok-patterns](https://github.com/logstash-plugins/logstash-patterns-core/blob/master/patterns/grok-patterns) to create the pattern. Why is this error happening and how can I fix this?

Thanks.

---

<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:** [March 14, 2018, 6:50am UTC](https://discuss.elastic.co/t/date-filter-dateparsefailure/123843/2 "2018-03-14T06:50:52Z")

</div>

Use MMM to match the name of a month, not MM.

> I refered this page [https://github.com/logstash-plugins/logstash-patterns-core/blob/master/patterns/grok-patterns](https://github.com/logstash-plugins/logstash-patterns-core/blob/master/patterns/grok-patterns) to create the pattern.

Really? Grok patterns have nothing to do with date patterns.

---

<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:** [April 11, 2018, 6:51am UTC](https://discuss.elastic.co/t/date-filter-dateparsefailure/123843/3 "2018-04-11T06:51:36Z")

</div>

Closed on April 11, 2018, 6:51am UTC

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