Logstash - Error parsing csv :exception=>java.lang.ArrayIndexOutOfBoundsException

I am trying to sync logs from csv, sometimes I get this error
[2021-07-28T14:49:03,857][WARN ][logstash.filters.csv ] Error parsing csv {:field=>"message", :source=>"M5804240304", :exception=>java.lang.ArrayIndexOutOfBoundsException}
What could be the reason for this? The csv format is correct and the important thing to note is this error does not occur every single time. I did not find anything relevant on the internet. I am using logstash 5.6

Are you able to update your logstash to a newer version?
Have you looked at the data that contains "M5804240304" to see if that row is any different than any other rows that do get processed?

I cannot update logstash because I am working with ES2.3. Also, the csv data is correct, I have checked all rows follow same exact pattern. Also, when I restart logstash on same csv this works fine. This error occurs only once in a while.

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