当我使用logstash将csv文件中的数据导入elasticsearch时,出现如下错误,并且没有数据导入到es。
如何解决?我可以删除消息字段或将消息设置为“空”吗?
[2018-08-15T23:23:07,540][WARN ][logstash.filters.csv ] Error parsing csv {:field=>"message", :source=>"\"XXXXXXXXXXXXX\",\"XXXXXXXXXXXXX\",\"XXXXXXXXXXXXX\",\"XXXXXXXXXXXXX\",(null),\"XXXXXXXXXXXXX\",\"XXXXXXXXXXXXX\",\"XXXXXXXXXXXXX\",\"X\",100.00,20220602,\"XXXX\",\"XXXXXXXXXXXXX\",1,\"XXXXXXXXXXXXX\",\"XXXXXXXXXXXXX\",\"XXXXXXXXXXXXX\",\"XXXXXXXXXXXXX\",\"XXXXXXXXXXXXX\",\"XXXXXXXXXXXXX\",\"XXXXXXXXXXXXX\",(null),(null),\"XXXXXXXXXXXXX\",\"XXXXXXXXXXXXX\",\"XXXXXXXXXXXXX\",\"\",\"XXXXXXXXXXXXX\"\r", :exception=>java.lang.ArrayIndexOutOfBoundsException}