# ISO8601 in date filter

**URL:** <https://discuss.elastic.co/t/iso8601-in-date-filter/93976>\
**Category:** Logstash\
**Created:** [July 20, 2017, 3:37pm UTC](https://discuss.elastic.co/t/iso8601-in-date-filter/93976 "2017-07-20T15:37:32Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Adam\_Szabo](https://avatars.discourse-cdn.com/v4/letter/a/67e7ee/32.png) [@Adam\_Szabo](https://discuss.elastic.co/u/Adam_Szabo)\
**Post date:** [July 20, 2017, 3:37pm UTC](https://discuss.elastic.co/t/iso8601-in-date-filter/93976/1 "2017-07-20T15:37:32Z")

</div>

I'm pulling events in from a MariaDB database.  
The event that arrives to Elasticsearch looks like this:

```
{
  "_index": "test",
  "_type": "logs",
  "_id": "AV1gkQx-9-vDP_XVWXk_",
  "_score": null,
  "_source": {
    "@timestamp": "2017-07-20T15:15:04.754Z",
    "a_field": "XXX",
    "other_field": "YYY",
    "@version": "1",
    "action": "INSERT",
    "detail": "ZZZ",
    "created_date": "2017-06-30T22:00:00.000Z",
    "some_id": 7893,
    "other_id": 4319,
    "tags": [
      "_dateparsefailure"
    ]
  },
  "fields": {
    "@timestamp": [
      1500563704754
    ]
  },
  "sort": [
    1500563704754
  ]
}

```

I tried using the `created_date` field as the timestamp with

```
filter {
    date {
        match => ["created_date", "ISO8601"]
        target => "@timestamp"
    }
}

```

Looking at the [documentation](https://www.elastic.co/guide/en/logstash/5.5/plugins-filters-date.html#plugins-filters-date-match), the format is exactly what I have:

> ISO8601 - should parse any valid ISO8601 timestamp, such as 2011-04-19T03:44:01.103Z

Why do I get a `_dateparsefailure` in the end then?

---

<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:** [August 17, 2017, 3:37pm UTC](https://discuss.elastic.co/t/iso8601-in-date-filter/93976/2 "2017-08-17T15:37:44Z")

</div>

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