# Log stash CSV Filter is not reading last line

**URL:** <https://discuss.elastic.co/t/log-stash-csv-filter-is-not-reading-last-line/147208>\
**Category:** Logstash\
**Created:** [September 4, 2018, 12:52pm UTC](https://discuss.elastic.co/t/log-stash-csv-filter-is-not-reading-last-line/147208 "2018-09-04T12:52:36Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![krisdinesh](https://avatars.discourse-cdn.com/v4/letter/k/f14d63/32.png) [@krisdinesh](https://discuss.elastic.co/u/krisdinesh)\
**Post date:** [September 4, 2018, 12:52pm UTC](https://discuss.elastic.co/t/log-stash-csv-filter-is-not-reading-last-line/147208/1 "2018-09-04T12:52:36Z")

</div>

Log stash CSV Filter is not reading last line as it is due to the same issue outlined in the below link I added a blank row at the end of csv and saved the file, re-ran the logstash and it worked.

> [@Csv file not reading last row from file input](https://discuss.elastic.co/t/csv-file-not-reading-last-row-from-file-input/83452):
>
> Hi All i am using csv file as input, using file plugin. After couple of trials i realized, it is not reading only the last line Any idea how this can be fixed? Thanks!

As I am using Jira link to download the content as CSV through CURL command where I don't have an option to add a blank row at the end of CSV file. Please let me know what can be the workaround in this scenario.

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [September 6, 2018, 8:09pm UTC](https://discuss.elastic.co/t/log-stash-csv-filter-is-not-reading-last-line/147208/2 "2018-09-06T20:09:49Z")

</div>

> As I am using Jira link to download the content as CSV through CURL command where I don't have an option to add a blank row at the end of CSV file.

I don't see why you wouldn't have the option to append a blank line after the curl command.

> Please let me know what can be the workaround in this scenario.

The file input requires that lines end with a newline character. This is not configurable.

---

<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 4, 2018, 8:09pm UTC](https://discuss.elastic.co/t/log-stash-csv-filter-is-not-reading-last-line/147208/3 "2018-10-04T20:09:52Z")

</div>

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