# \_dateparsefailure ISO8106

**URL:** <https://discuss.elastic.co/t/dateparsefailure-iso8106/119105>\
**Category:** Logstash\
**Created:** [February 8, 2018, 6:40pm UTC](https://discuss.elastic.co/t/dateparsefailure-iso8106/119105 "2018-02-08T18:40:31Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![tgdesrochers](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tgdesrochers/32/51322_2.png) [@tgdesrochers](https://discuss.elastic.co/u/tgdesrochers)\
**Post date:** [February 8, 2018, 6:40pm UTC](https://discuss.elastic.co/t/dateparsefailure-iso8106/119105/1 "2018-02-08T18:40:31Z")

</div>

Elasticstack 6.1

I am trying to parse the following field/date:  
`"EventTime":"2018-02-08 12:43:35.951854Z"`

I have used:

```auto
filter {   
  date {
    match => ["EventTime", "yyyy-MM-dd HH:mm:ss:SSSZ"]
  }
}

```

```auto
filter {   
  date {
    match => ["EventTime", "ISO8106"]
  }
}

```

And they all return a `_dateparsefailure`

I am not sure how to get the date to parse correctly

---

<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:** [February 8, 2018, 7:03pm UTC](https://discuss.elastic.co/t/dateparsefailure-iso8106/119105/2 "2018-02-08T19:03:08Z")

</div>

> match =\> ["EventTime", "yyyy-MM-dd HH:mm:ss:SSSZ"]

Have you tried SSSSSSS instead of SSS? Also, your date has a period between the seconds and microseconds, not a colon.

> match =\> ["EventTime", "ISO8106"]

It's ISO8601.

---

<div class="post-metadata">

**Author:** ![tgdesrochers](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tgdesrochers/32/51322_2.png) [@tgdesrochers](https://discuss.elastic.co/u/tgdesrochers)\
**Post date:** [February 8, 2018, 7:47pm UTC](https://discuss.elastic.co/t/dateparsefailure-iso8106/119105/3 "2018-02-08T19:47:37Z")

</div>

This eventually worked

```auto
filter {   
  date {
    match => ["EventTime", "yyyy-MM-dd HH:mm:ss.SSSSSSZ", "ISO8601"]
  }
}

```

`ISO8601` itself didn't work

---

<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:** [March 8, 2018, 7:47pm UTC](https://discuss.elastic.co/t/dateparsefailure-iso8106/119105/4 "2018-03-08T19:47:45Z")

</div>

Closed on March 8, 2018, 7:47pm UTC

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