I just upgraded from Logstash 1.7 to Logstash 2.2. most things are working except for my csv filters. I get XML data and some of the fields contain csv values. In Logstash 1.7 my filter looked like this:
csv {
source => ["Threat_Names"]
columns => ["Sig01_Name", "Sig02_Name", "Sig03_Name", "Sig04_Name", "Sig05_Name", "Sig06_Name", "Sig07_Name", "Sig08_Name", "Sig09_Name", "Sig10_Name"]
separator => ","
}
with the upgrade to Logstash I get errors in the logstash.log file that look like this
{:timestamp=>"2016-02-16T19:20:49.938000+0000", :message=>"Error parsing csv", :field=>"Threat_Names", :source=>["A211,B211,C211,G211,Ribo,1umBl,,,,"], :exception=>#<NoMethodError: private method `gets' called for ["A211,B211,C211,G211,Ribo,1umBl,,,,"]:Array>, :level=>:warn}
The xpath part is working because the values in the message are showing up in Threat_Names but its not parsing the contents of that field out into different fields.