# Elasticsearch Failed to Parse Time Field

**URL:** <https://discuss.elastic.co/t/elasticsearch-failed-to-parse-time-field/90395>\
**Category:** Elasticsearch\
**Created:** [June 22, 2017, 6:07am UTC](https://discuss.elastic.co/t/elasticsearch-failed-to-parse-time-field/90395 "2017-06-22T06:07:40Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Morgan\_Kisienya](https://avatars.discourse-cdn.com/v4/letter/m/90ced4/32.png) [@Morgan\_Kisienya](https://discuss.elastic.co/u/Morgan_Kisienya)\
**Post date:** [June 22, 2017, 6:07am UTC](https://discuss.elastic.co/t/elasticsearch-failed-to-parse-time-field/90395/1 "2017-06-22T06:07:40Z")

</div>

Hi all,

I have the following field from logstash in json

"DateFirstSeen" =\> 2017-06-21T19:47:29.782Z,

However elasticsearch fails to parse the filed and returns the following error

[2017-06-22T15:57:06,877][WARN][logstash.outputs.elasticsearch] Could not index event to Elasticsearch. {:status=\>400, :action=\>["index", {:\_id=\>nil, :\_index=\>"nfdump-2017.06.22", :\_type=\>"nw-events", :\_routing=\>nil}, 2017-06-22T05:57:05.329Z [server.com](http://server.com) %{message}], :response=\>{"index"=\>{"\_index"=\>"nfdump-2017.06.22", "\_type"=\>"nw-events", "\_id"=\>"AVzOYCaTuo1nKLuBo50c", "status"=\>400, "error"=\>{"type"=\>"mapper\_parsing\_exception", "reason"=\>"failed to parse [DateFirstSeen]", "caused\_by"=\>{"type"=\>"illegal\_argument\_exception", "reason"=\>"Invalid format: "Date first seen Date la...""}}}}}

Many thanks for your help

---

<div class="post-metadata">

**Author:** ![Morgan\_Kisienya](https://avatars.discourse-cdn.com/v4/letter/m/90ced4/32.png) [@Morgan\_Kisienya](https://discuss.elastic.co/u/Morgan_Kisienya)\
**Post date:** [June 22, 2017, 8:26am UTC](https://discuss.elastic.co/t/elasticsearch-failed-to-parse-time-field/90395/2 "2017-06-22T08:26:57Z")

</div>

I got the error.

I was including header line on CSV that was being parsed by logstash, the header line included "Data last seen" as a value i.e.  
"DateFirstSeen" =\> "Date first seen",  
I have removed the header line. All is ok.

---

<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 20, 2017, 8:36am UTC](https://discuss.elastic.co/t/elasticsearch-failed-to-parse-time-field/90395/3 "2017-07-20T08:36:00Z")

</div>

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