Csv file not reading last row from file input


(Ritesh) #1

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!


Log stash CSV Filter is not reading last line
#2

Hi Ritesh,

I am also facing same issue you found any solution for this.


(Magnus Bäck) #3

Does the final line end with a newline character?


(Ritesh) #4

Final line is not ending up with newline character.

I added a blank row in the bottom of csv and saved the file, re-ran the logstash and it worked.

I think it needs one extra line in bottom.Not sure why it is like this

Thanks!


(Magnus Bäck) #5

I think it needs one extra line in bottom.Not sure why it is like this

How would Logstash otherwise know that the line actually ended?


(system) #6

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