message=>"Expected one of #

Sending Logstash's logs to C:/logstash-6.3.0/logs which is now configured via log4j2.properties
[2018-07-04T12:49:04,756][WARN ][logstash.config.source.multilocal] Ignoring the 'pipelines.yml' file because modules or command line options are specified
[2018-07-04T12:49:06,123][INFO ][logstash.runner ] Starting Logstash {"logstash.version"=>"6.3.0"}
[2018-07-04T12:49:07,349][ERROR][logstash.agent ] Failed to execute action {:action=>LogStash::PipelineAction::Create/pipeline_id:main, :exception=>"LogStash::ConfigurationError", :message=>"Expected one of #, => at line 30, column 16 (byte 482) after filter{\n\tcsv{\n\tseparator=>","\n\tcolumns=>["season","city","date","team1","team2","toss_winner","toss_decision","result",\n\t"dl_applied","winner","win_by_runs","win_by_wickets","player_of_match","venue"]\n\t}\n\n\tmutuate {\n\tconvert =>{\n\n\t"seson"=>"integer"\n\t\t"win_by_runs"=>"integer"\n\t\t\t"dl_applied"=>"integer"\n\t\t\t\t"win_by_wickets"=>"integer"\n\n\t}\n\t\n\n}\noutput{\n\telasticsearch ", :backtrace=>["C:/logstash-6.3.0/logstash-core/lib/logstash/compiler.rb:42:in compile_imperative'", "C:/logstash-6.3.0/logstash-core/lib/logstash/compiler.rb:50:incompile_graph'", "C:/logstash-6.3.0/logstash-core/lib/logstash/compiler.rb:12:in block in compile_sources'", "org/jruby/RubyArray.java:2486:inmap'", "C:/logstash-6.3.0/logstash-core/lib/logstash/compiler.rb:11:in compile_sources'", "C:/logstash-6.3.0/logstash-core/lib/logstash/pipeline.rb:49:ininitialize'", "C:/logstash-6.3.0/logstash-core/lib/logstash/pipeline.rb:167:in initialize'", "C:/logstash-6.3.0/logstash-core/lib/logstash/pipeline_action/create.rb:40:inexecute'", "C:/logstash-6.3.0/logstash-core/lib/logstash/agent.rb:305:in `block in converge_state'"]}
[2018-07-04T12:49:08,192][INFO ][logstash.agent ] Successfully started Logstash API endpoint {:port=>9600}
MY code is (logstash):
input{
file{
path=>"C:\logstash-6.3.0\matches.csv"
start_position=>"beginning"
sincedb_path => "null"

}

}
filter{
csv{
separator=>","
columns=>["season","city","date","team1","team2","toss_winner","toss_decision","result",
"dl_applied","winner","win_by_runs","win_by_wickets","player_of_match","venue"]
}

mutuate {
convert =>{

"seson"=>"integer"
	"win_by_runs"=>"integer"
		"dl_applied"=>"integer"
			"win_by_wickets"=>"integer"

}

}
output{
elasticsearch {
hosts=>"localhost"
index=>"ipl2k16"
document_type="fixture"
}
stdout{}
}
any suggestion,,welcome

This is a configuration error (usually a typo). Log tells you in which line it is, specifically at:
document_type="fixture" which should be document_type=>"fixture"

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