# \_dateparsefailure when field is fine

**URL:** <https://discuss.elastic.co/t/dateparsefailure-when-field-is-fine/105597>\
**Category:** Logstash\
**Created:** [October 27, 2017, 5:12pm UTC](https://discuss.elastic.co/t/dateparsefailure-when-field-is-fine/105597 "2017-10-27T17:12:35Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![JeremyinNC](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jeremyinnc/32/44868_2.png) [@JeremyinNC](https://discuss.elastic.co/u/JeremyinNC)\
**Post date:** [October 27, 2017, 5:12pm UTC](https://discuss.elastic.co/t/dateparsefailure-when-field-is-fine/105597/1 "2017-10-27T17:12:35Z")

</div>

I am having trouble getting the correct dates in my logstash config. I have the following as my "date" filter:

```
date {
    locale => en
    match => ["msr_open_date_time" , "yyyy-MM-dd'T'HH:mm:ss.SSS", "dd/MMM/yyyy:HH:mm:ss Z" , "yyyy-MM-dd HH:mm:ss,SSS" , "yyy-MM-dd HH:mm:ss,SSSZ" , "yyyy-MM-dd'T'HH:mm:ss.SSSZ", "ISO8601"]
}

```

and here is the value of source:

```
{
"site_street": "64 PLAINS ROAD",
"msr_troubleshoot_comments": "Test stuff",
"serialNumber": 7676,
"msra_call_type": "WT",
"msr_tech_id": null,
"mcl_mp_id": null,
"siteName": "Yummy Food Mart",
"site_zip": "06613",
"site_city": "TILLTON",
"msr_open_date_time": "2017-08-18T12:54:00.000Z",
"msra_serial_num": "OE012081",
"tags": [
  "sql",
  "_dateparsefailure"
],
"site_phone": "203243",
"site_st": "VT",
"@timestamp": "2017-10-27T17:08:38.285Z",
"contr_name": "John F Kennedy",
"@version": "1",
"siteId": "193627",
"msra_action_id": "10581519",
"msra_model_num": "PA0324PB52A",
"msric_comment": null
}

```

Can someone tell me why it's not accepting the **msr\_open\_date\_time** as a valid date?

---

<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 27, 2017, 5:25pm UTC](https://discuss.elastic.co/t/dateparsefailure-when-field-is-fine/105597/2 "2017-10-27T17:25:30Z")

</div>

When the Logstash date filter fails it'll log a message with clues.

---

<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 24, 2017, 5:25pm UTC](https://discuss.elastic.co/t/dateparsefailure-when-field-is-fine/105597/3 "2017-11-24T17:25:51Z")

</div>

Closed on November 24, 2017, 5:25pm UTC

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