# Why does this date filter get a \_dateparsefailure?

**URL:** <https://discuss.elastic.co/t/why-does-this-date-filter-get-a-dateparsefailure/132199>\
**Category:** Logstash\
**Created:** [May 16, 2018, 7:27pm UTC](https://discuss.elastic.co/t/why-does-this-date-filter-get-a-dateparsefailure/132199 "2018-05-16T19:27:12Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)\
**Post date:** [May 16, 2018, 7:27pm UTC](https://discuss.elastic.co/t/why-does-this-date-filter-get-a-dateparsefailure/132199/1 "2018-05-16T19:27:12Z")

</div>

Why does this date filter get a \_dateparsefailure?

```
input { generator { message => 'N' count => 1 } }
output { stdout { codec => rubydebug } }
filter {
  mutate { add_field => { "DateReported" => "1292015 1745" } }
  date { match => ["DateReported", "Mddyyyy HHmm"] }
}

```

I am getting to the point where I am considering a ruby filter to rjust it.

---

<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:** [May 16, 2018, 7:34pm UTC](https://discuss.elastic.co/t/why-does-this-date-filter-get-a-dateparsefailure/132199/2 "2018-05-16T19:34:45Z")

</div>

Anything in the log?

---

<div class="post-metadata">

**Author:** ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)\
**Post date:** [May 16, 2018, 7:54pm UTC](https://discuss.elastic.co/t/why-does-this-date-filter-get-a-dateparsefailure/132199/3 "2018-05-16T19:54:59Z")

</div>

No. I'm wondering if M is consuming the 12, leaving dd to not match 9.

---

<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:** [June 13, 2018, 7:55pm UTC](https://discuss.elastic.co/t/why-does-this-date-filter-get-a-dateparsefailure/132199/4 "2018-06-13T19:55:09Z")

</div>

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