执行logstash时命令执行完没有反应

这是logstash的log中的报错
 Failed to execute action {:action=>LogStash::PipelineAction::Create/pipeline_id:main, :exception=>"LogStash::ConfigurationError", :message=>"Expected one of #, => at line 2, column 18 (byte 59) after input{stdin{codec", :backtrace=>["D:/anFile/software/ELK/test/logstash-6.2.2/logstash-core/lib/logstash/compiler.rb:42:in `compile_imperative'", "D:/anFile/software/ELK/test/logstash-6.2.2/logstash-core/lib/logstash/compiler.rb:50:in `compile_graph'", "D:/anFile/software/ELK/test/logstash-6.2.2/logstash-core/lib/logstash/compiler.rb:12:in `block in compile_sources'", "org/jruby/RubyArray.java:2486:in `map'", "D:/anFile/software/ELK/test/logstash-6.2.2/logstash-core/lib/logstash/compiler.rb:11:in `compile_sources'", "D:/anFile/software/ELK/test/logstash-6.2.2/logstash-core/lib/logstash/pipeline.rb:51:in `initialize'", "D:/anFile/software/ELK/test/logstash-6.2.2/logstash-core/lib/logstash/pipeline.rb:169:in `initialize'", "D:/anFile/software/ELK/test/logstash-6.2.2/logstash-core/lib/logstash/pipeline_action/create.rb:40:in `execute'", "D:/anFile/software/ELK/test/logstash-6.2.2/logstash-core/lib/logstash/agent.rb:315:in `block in converge_state'", "D:/anFile/software/ELK/test/logstash-6.2.2/logstash-core/lib/logstash/agent.rb:141:in `with_pipelines'", "D:/anFile/software/ELK/test/logstash-6.2.2/logstash-core/lib/logstash/agent.rb:312:in `block in converge_state'", "org/jruby/RubyArray.java:1734:in `each'", "D:/anFile/software/ELK/test/logstash-6.2.2/logstash-core/lib/logstash/agent.rb:299:in `converge_state'", "D:/anFile/software/ELK/test/logstash-6.2.2/logstash-core/lib/logstash/agent.rb:166:in `block in converge_state_and_update'", "D:/anFile/software/ELK/test/logstash-6.2.2/logstash-core/lib/logstash/agent.rb:141:in `with_pipelines'", "D:/anFile/software/ELK/test/logstash-6.2.2/logstash-core/lib/logstash/agent.rb:164:in `converge_state_and_update'", "D:/anFile/software/ELK/test/logstash-6.2.2/logstash-core/lib/logstash/agent.rb:90:in `execute'", "D:/anFile/software/ELK/test/logstash-6.2.2/logstash-core/lib/logstash/runner.rb:348:in `block in execute'", "D:/anFile/software/ELK/test/logstash-6.2.2/vendor/bundle/jruby/2.3.0/gems/stud-0.0.23/lib/stud/task.rb:24:in `block in initialize'"]}
已邀请:

Dm

赞同来自:

应该是配置文件中有错误,一点一点排查,可以先换个最简单的配置启动看看

Thoremp

赞同来自:

原因为logstash输出设置为elasticsearch,但是elasticsearch未启动

要回复问题请先登录注册