Was working on logstash and got stuck with this error:
<
[2025-05-28T06:57:49,669][ERROR][logstash.agent ] Failed to execute action {:action=>LogStash::PipelineAction::Create/pipeline_id:main, :exception=>"LogStash::ConfigurationError", :message=>"Expected one of [ \t\r\n], "#", "input", "filter", "output" at line 6, column 1 (byte 132) after ", :backtrace=>["/home/onizuwo/logstash-9.0.1/logstash-core/lib/logstash/compiler.rb:32:in `compile_imperative'", "org/logstash/execution/AbstractPipelineExt.java:294:in `initialize'", "org/logstash/execution/AbstractPipelineExt.java:227:in `initialize'", "/home/onizuwo/logstash-9.0.1/logstash-core/lib/logstash/java_pipeline.rb:47:in `initialize'", "org/jruby/RubyClass.java:949:in `new'", "/home/onizuwo/logstash-9.0.1/logstash-core/lib/logstash/pipeline_action/create.rb:50:in `execute'", "/home/onizuwo/logstash-9.0.1/logstash-core/lib/logstash/agent.rb:420:in `block in converge_state'"]}
/>
You can also find my script over here:
input { stdin { } }
filter {}
output {
elasticsearch {
hosts => ["https://elasticsearchhost:9200"]
user => "admin"
password => "password"
ssl => true
ssl_certificate_verification => false
}
}
I tried to type out the conf file all by myself without copy and paste. I also made sure that the indentation was correct and it still did not work. Can someone advise me on this issue?