Getting below error:
[2018-01-25T21:29:32,237][ERROR][logstash.agent ] Failed to execute action {:action=>LogStash::PipelineAction::Create/pipeline_id:main, :exception=>"LogStash::ConfigurationError", :message=>"Expected one of #, {, ,, ] at line 22, column 35 (byte 730) after filter {\n csv {\n \t\tseparator => ","\n\t\t\tcolumns => ["crimedate","crimetime","crimecode","location","description","inside_outside","weapon","post","district","neighborhood","longitude","latitude","premise","total_incidents"] \n }\n\tdate {\n\t\tmatch => ["crimedate", "mm/dd/yy"]\n\t }\n\tmutate {convert => ["longitude", "float"]}\n\tmutate {convert => ["latitude"
CANT'T FIGURE OUT WHAT'S THE ERROR IN THIS CODE
// input {
file { path => "/home/ppunj/md-c.csv"
start_position => 'beginning'
sincedb_path => '/dev/null'
}
}
filter {
csv {
separator => ","
columns => ["crimedate","crimetime","crimecode","location","description","inside_outside","weapon","post","district","neighborhood","longitude","latitude","premise","total_incidents"]
}
date {
match => ["crimedate", "mm/dd/yy"]
}
mutate {convert => ["longitude", "float"]}
mutate {convert => ["latitude", "float"]}
mutate {rename => {"longitude" => "[location][lon]"}}
mutate {rename => {"latitude" => "[location][lat]"}}
mutate {convert => ["total_incidents", "integer]}
}
output {
elasticsearch { hosts => "localhost:9200"
index => "md-c"
index_type => "mc_data"
}
stdout {}
}