# Logstash Date Parsing Error

**URL:** <https://discuss.elastic.co/t/logstash-date-parsing-error/210409>\
**Category:** Logstash\
**Created:** [December 3, 2019, 5:40pm UTC](https://discuss.elastic.co/t/logstash-date-parsing-error/210409 "2019-12-03T17:40:15Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Triack\_2000](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/triack_2000/32/58725_2.png) [@Triack\_2000](https://discuss.elastic.co/u/Triack_2000)\
**Post date:** [December 3, 2019, 5:40pm UTC](https://discuss.elastic.co/t/logstash-date-parsing-error/210409/1 "2019-12-03T17:40:16Z")

</div>

Hello All, I am trying to parse logs from openresty and running into parsing issue. In the log, the date shows as:  
[03/Dec/2019:17:17:14 +0000]  
my parser is configured as:  
date{ match =\> ["log\_time", "dd/MMM/yyyy:HH:mm:ss Z"] target =\> "log\_time"  
and the date transforms as you would expect, but it transforms into a date that is parsible by elastic as shown by:  
Caused by: java.lang.IllegalArgumentException: failed to parse date field [2019-12-03T17:17:14.000Z] with format [yyyy/MM/dd HH:mm:ss||yyyy/MM/dd||epoch\_millis]

any help appreciated. TIA

---

<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:** [December 31, 2019, 5:40pm UTC](https://discuss.elastic.co/t/logstash-date-parsing-error/210409/2 "2019-12-31T17:40:26Z")

</div>

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