[ERROR][logstash.agent ] Failed to execute action

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?

Hello @Reyhan ,
Welcome to the community.
Could you please check below link :

To test issue with the configuration maybe we can review it via :
bin/logstash --config.test_and_exit -f /path/to/your/config.conf

Thanks!!

LS v8+ uses ssl_verification_mode

input { stdin { } }
filter {}
output {
   elasticsearch {
     hosts => ["https://elasticsearchhost:9200"]
     user => "admin"
     password => "password"
     ssl_enabled => true
     ssl_verification_mode => none
   }
 }

If you are running in the service mode, LS will run all .conf files from ../conf.d/
As Tortoise said, test your .conf file and run LS from the command line.