I run cmd .\logstash -e 'input{stdin{}} output{ elasticsearch{ hosts=>["127.0.0.1:9200"] } }' ; then have following errors.
[2018-12-20T18:47:55,667][ERROR][logstash.agent ] Failed to execute action {:action=>LogStash::PipelineAction::Create/pipeline_id:main, :exception=>"LogStash::ConfigurationError", :message=>"Expected one of #, ,, ] at line 1, column 53 (byte 53) after output{ elasticsearch{ hosts=>[127.0", :backtrace=>["D:/ELK/logstash-6.5.1/logstash-core/lib/logstash/compiler.rb:41:in compile_imperative'", "D:/ELK/logstash-6.5.1/logstash-core/lib/logstash/compiler.rb:49:in
compile_graph'", "D:/ELK/logstash-6.5.1/logstash-core/lib/logstash/compiler.rb:11:in block in compile_sources'", "org/jruby/RubyArray.java:2486:in
map'", "D:/ELK/logstash-6.5.1/logstash-core/lib/logstash/compiler.rb:10:in compile_sources'", "org/logstash/execution/AbstractPipelineExt.java:149:in
initialize'", "D:/ELK/logstash-6.5.1/logstash-core/lib/logstash/pipeline.rb:22:in initialize'", "D:/ELK/logstash-6.5.1/logstash-core/lib/logstash/pipeline.rb:90:in
initialize'", "D:/ELK/logstash-6.5.1/logstash-core/lib/logstash/pipeline_action/create.rb:42:in block in execute'", "D:/ELK/logstash-6.5.1/logstash-core/lib/logstash/agent.rb:92:in
block in exclusive'", "org/jruby/ext/thread/Mutex.java:148:in synchronize'", "D:/ELK/logstash-6.5.1/logstash-core/lib/logstash/agent.rb:92:in
exclusive'", "D:/ELK/logstash-6.5.1/logstash-core/lib/logstash/pipeline_action/create.rb:38:in execute'", "D:/ELK/logstash-6.5.1/logstash-core/lib/logstash/agent.rb:317:in
block in converge_state'"]}
if i do not add elasticsearch,it can run success.
my elasticsearch service is still running!