Using below config file
input {
file {
path => "C:\logstash\bin\saptest1.csv"
type => "core2"
start_position => "beginning"
}
}
filter {
csv {
columns => ["Material","Batch","Plant","SLoc"]
separator => ","
}
}
output {
stdout {
codec => rubydebug
}
}
CSV file has values for 4 columns separated by ,
Im getting below output and index not created
{:timestamp=>"2016-04-26T09:59:54.305000+0530", :message=>"Reading config file", :config_file=>"C:/logstash/bin/sap.conf", :level=>:debug, :file=>"/logstash/vendor/bundle/jruby/1.9/gems/logstash-core-2.3.1-java/lib/logstash/config/loader.rb", :line=>"69", :method=>"local_config"}
{:timestamp=>"2016-04-26T09:59:54.365000+0530", :message=>"Plugin not defined in namespace, checking for plugin file", :type=>"input", :name=>"file", :path=>"logstash/inputs/file", :level=>:debug, :file=>"/logstash/vendor/bundle/jruby/1.9/gems/logstash-core-2.3.1-java/lib/logstash/plugin.rb", :line=>"76", :method=>"lookup"}
{:timestamp=>"2016-04-26T09:59:54.385000+0530", :message=>"Plugin not defined in namespace, checking for plugin file", :type=>"codec", :name=>"plain", :path=>"logstash/codecs/plain", :level=>:debug, :file=>"/logstash/vendor/bundle/jruby/1.9/gems/logstash-core-2.3.1-java/lib/logstash/plugin.rb", :line=>"76", :method=>"lookup"}
{:timestamp=>"2016-04-26T09:59:54.405000+0530", :message=>"config LogStash::Codecs::Plain/@charset = "UTF-8"", :level=>:debug, :file=>"/logstash/vendor/bundle/jruby/1.9/gems/logstash-core-2.3.1-java/lib/logstash/config/mixin.rb", :line=>"153", :method=>"config_init"}
{:timestamp=>"2016-04-26T09:59:54.405000+0530", :message=>"config LogStash::Inputs::File/@path = ["C:\\logstash\\bin\\saptest1.csv"]", :level=>:debug, :file=>"/logstash/vendor/bundle/jruby/1.9/gems/logstash-core-2.3.1-java/lib/logstash/config/mixin.rb", :line=>"153", :method=>"config_init"}
"2016-04-26T10:00:23.927000+0530",