# Failed parsing date from field

**URL:** <https://discuss.elastic.co/t/failed-parsing-date-from-field/37542>\
**Category:** Logstash\
**Created:** [December 18, 2015, 7:24am UTC](https://discuss.elastic.co/t/failed-parsing-date-from-field/37542 "2015-12-18T07:24:08Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![nivetha](https://avatars.discourse-cdn.com/v4/letter/n/54ee81/32.png) [@nivetha](https://discuss.elastic.co/u/nivetha)\
**Post date:** [December 18, 2015, 7:24am UTC](https://discuss.elastic.co/t/failed-parsing-date-from-field/37542/1 "2015-12-18T07:24:08Z")

</div>

I am trying to parse the date with different timezone, but I get the "Failed parsing date from field".  
I dont know where I go wrong.  
Here are the conf I use:  
filter{  
date{  
match =\> [" **eventTime**", "YYYY/MM/dd HH:mm:ss.SS" , "YYYY/MM/dd HH:mm:ss.SSS" , "YYYY/MM/dd HH:mm:ss.SSSSSSZ", "YYYY/MM/dd HH:mm:ss.SSSSSSZZ"]  
add\_tag =\> ["date\_filter"]  
target =\> "@timestamp"  
}  
}

The dates in **eventTime** field to be matched are:  
2015/12/15 05:05:9.957 , 2015/12/15 05:05:9.393040 +00:00 , 2015/12/15 05:05:9.393040 +0530

---

<div class="post-metadata">

**Author:** ![wiibaa](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/wiibaa/32/44931_2.png) [@wiibaa](https://discuss.elastic.co/u/wiibaa)\
**Post date:** [December 18, 2015, 8:07am UTC](https://discuss.elastic.co/t/failed-parsing-date-from-field/37542/2 "2015-12-18T08:07:26Z")

</div>

2015/12/15 05:05:9.957 =\> yyyy/MM/dd HH:mm:ss.SSS **you already have this one**

2015/12/15 05:05:9.393040 +00:00 =\> yyyy/MM/dd HH:mm:s.SSSSSS ZZ because

- seconds without leading zero =\> **single s**
- **space between time and timezone**
- **ZZ** because of timezone use the ':' separator

2015/12/15 05:05:9.393040 +0530 =\> yyyy/MM/dd HH:mm:s.SSSSSS Z because

- seconds without leading zero =\> **single s**
- **space between time and timezone**
- **Z** because of timezone use the simple form without ':' separator

---

<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 6, 2017, 5:17am UTC](https://discuss.elastic.co/t/failed-parsing-date-from-field/37542/3 "2017-07-06T05:17:54Z")

</div>


