I feel something is not right in my conf file. Ant help. I am not able to start this conf file.
Conf File:
input {
file {
path => "/data/es/snmp/stage/snmp.csv"
start_position => "beginning"
sincedb_path => "/dev/null"
}
}
filter {
csv {
separator => ","
columns => [ "Date","Time","Block","Name","IP","Device","Sr.No","Alert Message" ]
}
mutate { merge ==> ["Date","Time]}
date {
match => [ "Date", "dd-MMM-YYYY HH:mm:ss" ]
locale => "en"
remove_field => [ "Date" ]
}
mutate {
convert => { "Block" => "float" }
convert => { "Name" => "float" }
convert => { "IP" => "float" }
convert => { "Device" => "float" }
convert => { "Sr.No" => "float" }
convert => { "Alert Message" => "float" }
}
}
output {
elasticsearch {
action => "index"
hosts => ['localhost:9200']
index => "alerts"
workers => 1
}
stdout {}
}
Error Message
[2018-01-31T11:40:09,441][INFO ][logstash.modules.scaffold] Initializing module {:module_name=>"fb_apache", :directory=>"/usr/share/logstash/modules/fb_apache/configuration"}
[2018-01-31T11:40:09,448][INFO ][logstash.modules.scaffold] Initializing module {:module_name=>"netflow", :directory=>"/usr/share/logstash/modules/netflow/configuration"}
[2018-01-31T11:40:09,907][WARN ][logstash.config.source.multilocal] Ignoring the 'pipelines.yml' file because modules or command line options are specified
[2018-01-31T11:40:10,148][FATAL][logstash.runner ] The given configuration is invalid. Reason: Expected one of #, => at line 13, column 16 (byte 248) after filter {
csv {
separator => ","
columns => [ "Date","Time","Block","Name","IP","Device","Sr.No","Alert Message" ]
}
mutate { merge
Any help - appreciated.
CS