# TIMESTAMP\_ISO8601 in date not working

**URL:** <https://discuss.elastic.co/t/timestamp-iso8601-in-date-not-working/136923>\
**Category:** Logstash\
**Created:** [June 21, 2018, 5:32pm UTC](https://discuss.elastic.co/t/timestamp-iso8601-in-date-not-working/136923 "2018-06-21T17:32:14Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![punit\_j](https://avatars.discourse-cdn.com/v4/letter/p/a87d85/32.png) [@punit\_j](https://discuss.elastic.co/u/punit_j)\
**Post date:** [June 21, 2018, 5:32pm UTC](https://discuss.elastic.co/t/timestamp-iso8601-in-date-not-working/136923/1 "2018-06-21T17:32:14Z")

</div>

I have a date as below:

2018-06-21 13:25:09-04:00

my logstash filter for date is as below:  
date {  
match =\> ["DeviceDate", "TIMESTAMP\_ISO8601"]  
target =\> "@timestamp"  
}

however i get below error on :

Cannot create pipeline { :reason=\>"Illegal pattern component: T"}

Any clue how to fix this?

---

<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:** [June 21, 2018, 5:57pm UTC](https://discuss.elastic.co/t/timestamp-iso8601-in-date-not-working/136923/2 "2018-06-21T17:57:37Z")

</div>

> [@punit\_j](#):
>
> match =\> ["DeviceDate", "TIMESTAMP\_ISO8601"]

It's falling over at the first T in TIMESTAMP\_ISO8601. You could change that to

```
match => ["DeviceDate", "ISO8601"]

```

Which would run, but return a date parse failure. Try

```
match => ["DeviceDate", "yyyy-MM-dd HH:mm:ssZ"]

```

---

<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:** [July 19, 2018, 5:57pm UTC](https://discuss.elastic.co/t/timestamp-iso8601-in-date-not-working/136923/3 "2018-07-19T17:57:42Z")

</div>

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