# Logstash csv data output error

**URL:** https://discuss.elastic.co/t/logstash-csv-data-output-error/199925
**Category:** Logstash
**Created:** [September 18, 2019, 7:12am UTC](https://discuss.elastic.co/t/logstash-csv-data-output-error/199925 "2019-09-18T07:12:54Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![pgw5540](https://avatars.discourse-cdn.com/v4/letter/p/e47c2d/32.png) [@pgw5540](https://discuss.elastic.co/u/pgw5540)
#### Post date: [September 18, 2019, 7:12am UTC](https://discuss.elastic.co/t/logstash-csv-data-output-error/199925/1 "2019-09-18T07:12:54Z")

</div>

Output csv data to elasticserach through logstash.  
However, sometimes certain problems occur.  
For example, the data of column B is outputed in column A.  
Therefore, the following error occurs because data of another field is output in DATE FIELD.  
There is no problem with that csv file.

Please help me.  
Thank you!

[error code]  
[2019-09-18T15:22:35,343][WARN][logstash.outputs.elasticsearch] Could not index event to Elasticsearch. {:status=\>400, :action=\>["index", {:\_id=\>"59", :\_index=\>"engine04", :\_type=\>"doc", :routing=\>nil}, #LogStash::Event:0x4dcc9186], :response=\>{"index"=\>{"\_index"=\>"engine04", "\_type"=\>"doc", "\_id"=\>"59", "status"=\>400, "error"=\>{"type"=\>"mapper\_parsing\_exception", "reason"=\>"failed to parse field [DATE] of type [date]", "caused\_by"=\>{"type"=\>"illegal\_argument\_exception", "reason"=\>"Invalid format: "59" is too short"}}}}}

---

<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: [October 16, 2019, 7:12am UTC](https://discuss.elastic.co/t/logstash-csv-data-output-error/199925/2 "2019-10-16T07:12:59Z")

</div>

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