# Last line of CSV file not parsed/indexed

**URL:** <https://discuss.elastic.co/t/last-line-of-csv-file-not-parsed-indexed/62968>\
**Category:** Logstash\
**Created:** [October 13, 2016, 3:54pm UTC](https://discuss.elastic.co/t/last-line-of-csv-file-not-parsed-indexed/62968 "2016-10-13T15:54:42Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![frederes](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/frederes/32/12476_2.png) [@frederes](https://discuss.elastic.co/u/frederes)\
**Post date:** [October 13, 2016, 3:54pm UTC](https://discuss.elastic.co/t/last-line-of-csv-file-not-parsed-indexed/62968/1 "2016-10-13T15:54:42Z")

</div>

Hello,  
I use logstash to index a lot of CSV files.  
I noticed that the last line of the files was not parsed.  
In fact, there is no carriage return after he last line and that is the problem.  
Is there a way to solve this with a configuration trick ? (considering not changing the CSV structure itself)  
Thank you for your help.

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [October 14, 2016, 10:03am UTC](https://discuss.elastic.co/t/last-line-of-csv-file-not-parsed-indexed/62968/2 "2016-10-14T10:03:08Z")

</div>

There is not, LS looks for the CRLF.

---

<div class="post-metadata">

**Author:** ![frederes](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/frederes/32/12476_2.png) [@frederes](https://discuss.elastic.co/u/frederes)\
**Post date:** [October 14, 2016, 2:10pm UTC](https://discuss.elastic.co/t/last-line-of-csv-file-not-parsed-indexed/62968/3 "2016-10-14T14:10:07Z")

</div>

ok, that's clear thanks 😉

---

<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, 4:34am UTC](https://discuss.elastic.co/t/last-line-of-csv-file-not-parsed-indexed/62968/4 "2017-07-06T04:34:12Z")

</div>


