Issue to run logstash

Hello everyone,

I am using Redhat and logstash8.2.0. I want to start my logstash instance, so I execute the following command:

bin/logstash -f /bin/logstash-8.2.0/config/logstash.yml

Here's the error I get:

[2024-02-20T17:22:54,020][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 19, column 1 (byte 322) after ", :backtrace=>["/bin/logstash-8.2.0/logstash-core/lib/logstash/compiler.rb:32:in compile_imperative'", "org/logstash/execution/AbstractPipelineExt.java:189:in initialize'", "org/logstash/execution/JavaBasePipelineExt.java:72:in initialize'", "/bin/logstash-8.2.0/logstash-core/lib/logstash/java_pipeline.rb:47:in initialize'", "/bin/logstash-8.2.0/logstash-core/lib/logstash/pipeline_action/create.rb:50:in execute'", "/bin/logstash-8.2.0/logstash-core/lib/logstash/agent.rb:381:in block in converge_state'"]}

This is strange because my logstash.yml file only contains comments, except on line 19 which is:

node.name: test

Do you have any idea where the error is coming from?

Thanks in advance for your help !

Regards

path.config (the -f option) should point to a .conf file that defines inputs, filters, and outputs. It should not point to logstash.yml, which logstash will look for in path.settings.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.