exception=>"LogStash::ConfigurationError", :message=>"Expected one of #, \", ', } at line 18, column 1 (byte 554) after output{\n elasticsearch{\n",

Am getting the below error message upon trying to upload csv using logstash. Below is my config file. Can someone pls help

input{
file{
path => "/etc/data/dept_subsystem.csv"
start_position => "beginning"
sincedb_path => "/dev/null"
}
}

filter{
csv{
separator => ","
columns => ["Universal Id","State","Sv","Age","CQ Pri","CMVC ID","CMVC Track","CR Fix Date","Platform","Subsys","Reported Release","Release","Fix Potential","Component","Phase Found","Submitter","Owner","Headline","Symptoms","Keywords","Reference","LastUpdate","DaysSinceOpen","Dept","Projected Date","Action","Subm Dept","CI"]
}
}

output{
elasticsearch{
hosts => "localhost"
index => "defects_new1"
document_type => "defects_temp1"
}
stdout{}
}
~
~
~
~

Your Elasticsearch output option hosts is misconfigured. It should also be square bracketed.
hosts => ["localhost:9200"]

Logstash Reference

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.