# Failed to parse date field with format strict\_date\_optional\_time||epoch\_millis

**URL:** <https://discuss.elastic.co/t/failed-to-parse-date-field-with-format-strict-date-optional-time-epoch-millis/333734>\
**Category:** Logstash\
**Tags:** elastic-stack-monitoring\
**Created:** [May 18, 2023, 7:16am UTC](https://discuss.elastic.co/t/failed-to-parse-date-field-with-format-strict-date-optional-time-epoch-millis/333734 "2023-05-18T07:16:27Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sachinda](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sachinda/32/120770_2.png) [@Sachinda](https://discuss.elastic.co/u/Sachinda)\
**Post date:** [May 18, 2023, 7:16am UTC](https://discuss.elastic.co/t/failed-to-parse-date-field-with-format-strict-date-optional-time-epoch-millis/333734/1 "2023-05-18T07:16:27Z")

</div>

Hi All,

We are observing the following error in the Logstash serves only for the 2023.05.09 logs. This issue is not occurring in other date indexes. so we can see the 2023.05.08 and 2023.05.10 logs are available on the Kibana without any issues. Furthermore, we have checked the timestamp difference between the 2023.05.09 and 2023.05.10 logs but these are identical.

```auto
Could not index event to Elasticsearch. {:status=>400, :action=>["index", {:_id=>nil, :_index=>"transactions-2023.05.09", :routing=>nil, :_type=>"_doc"}, #<LogStash::Event:0x437c8092>], :response=>{"index"=>{"_index"=>"transactions-2023.05.09", "_type"=>"_doc", "_id"=>"91kVJIgBgbbPx33EqrKh", "status"=>400, "error"=>{"type"=>"mapper_parsing_exception", "reason"=>"failed to parse field [timestamp] of type [date] in document with id '91kVJIgBgbbPx33EqrKh'. Preview of field's value: '2023-05-09 00:00:20,953'", "caused_by"=>{"type"=>"illegal_argument_exception", "reason"=>"failed to parse date field [2023-05-09 00:00:20,953] with format [strict_date_optional_time||epoch_millis]", "caused_by"=>{"type"=>"date_time_parse_exception", "reason"=>"Failed to parse with all enclosed parsers"}}}}}}

```

Could you please assist us to resolve the issue?

Thanks,

---

<div class="post-metadata">

**Author:** ![Rios](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rios/32/95745_2.png) [@Rios](https://discuss.elastic.co/u/Rios)\
**Post date:** [May 18, 2023, 9:08am UTC](https://discuss.elastic.co/t/failed-to-parse-date-field-with-format-strict-date-optional-time-epoch-millis/333734/2 "2023-05-18T09:08:02Z")

</div>

> [@Sachinda](#):
>
> field [timestamp] ...`[2023-05-09 00:00:20,953]`

Check comma after seconds, usually it's dot.

---

<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:** [June 15, 2023, 9:08am UTC](https://discuss.elastic.co/t/failed-to-parse-date-field-with-format-strict-date-optional-time-epoch-millis/333734/3 "2023-06-15T09:08:30Z")

</div>

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