i try to start logstash with config file but it can't work
ERROR:
[2019-02-19T16:59:48,269][ERROR][logstash.agent ] Failed to execute action {:action=>LogStash::PipelineAction::Create/pipeline_id:main, :exception=>"LogStash::ConfigurationError"
, :message=>"Expected one of #, input, filter, output at line 3, column 1 (byte 76) after ", :backtrace=>["/home/zhenqinghe/elk/logstash-6.6.0/logstash-core/lib/logstash/compiler.rb:41:in compile_imperative'" , "/home/zhenqinghe/elk/logstash-6.6.0/logstash-core/lib/logstash/compiler.rb:49:in
compile_graph'", "/home/zhenqinghe/elk/logstash-6.6.0/logstash-core/lib/logstash/compiler.rb:11:in block in compile_sources'" , "org/jruby/RubyArray.java:2486:in
map'", "/home/zhenqinghe/elk/logstash-6.6.0/logstash-core/lib/logstash/compiler.rb:10:in compile_sources'", "org/logstash/execution/AbstractPipelineExt.java:149:in
initialize'"
, "/home/zhenqinghe/elk/logstash-6.6.0/logstash-core/lib/logstash/pipeline.rb:22:in initialize'", "/home/zhenqinghe/elk/logstash-6.6.0/logstash-core/lib/logstash/pipeline.rb:90:in
initialize'"
, "/home/zhenqinghe/elk/logstash-6.6.0/logstash-core/lib/logstash/pipeline_action/create.rb:42:in block in execute'", "/home/zhenqinghe/elk/logstash-6.6.0/logstash-core/lib/logstash/agent.rb:92:in
block in exclusive'"
, "org/jruby/ext/thread/Mutex.java:148:in synchronize'", "/home/zhenqinghe/elk/logstash-6.6.0/logstash-core/lib/logstash/agent.rb:92:in
exclusive'"
, "/home/zhenqinghe/elk/logstash-6.6.0/logstash-core/lib/logstash/pipeline_action/create.rb:38:in execute'", "/home/zhenqinghe/elk/logstash-6.6.0/logstash-core/lib/logstash/agent.rb:317:in
block in converge_state'"]}
my conf file :
input {
file {
path => ["/home/zhenqinghe/elk/testlog/*.log"]
type => "kettle_log"
start_position => "beginning"
}
}
filter {
grok {
patterns_dir => ["/home/zhenqinghe/elk/logstash-6.6.0/config/patterns"]
match => {
"message" => ["%{KETTLE_DATE}:kettle_date"]
}
}
date {
match => ["kettle_date", "dd/MMM/yyyy:HH:mm:ss Z"]
}
}
output {
file {
path => "/home/zhenqinghe/elk/resultlog/%{host}.log"
message_format => "%{message}"
}
}