Hi,
I'm using the csv filter to split my lines up. Working quite well apart from one problem...
Some fields are being populated with a value of nil and I'd like to remove those fields:-
You don't mention which version of Logstash you are using, but as of LS 2.1.1 which includes logstash-filter-csv-2.1.0 there is a 'skip_empty_columns' config option.
From filter csv.rb ( ./logstash-2.1.1/vendor/bundle/jruby/1.9/gems/logstash-filter-csv-2.1.0/lib/logstash/filters/csv.rb):
Define whether empty columns should be skipped.
Defaults to false. If set to true, columns containing no value will not get set.
Hi,
I'm using LS 2.2. Thanks for this ... I suspect that this would solve the problem for me but had already implemented the ruby filter fix from Magnus. I'll probably switch to this method asap though.
Many thanks!
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.