Logstash pipeline

Below is my pipelines.yml file but the configs not picked by logstash! Anything wrong here?

  • pipeline.id: step1
    pipeline.workers: 1
    path.config: "D:/logstash-7.8.1/config/step1.conf"
  • pipeline.id: step2
    pipeline.workers: 1
    path.config: "D:/logstash-7.8.1/config/step2.conf"

Logstash output:

[2020-10-01T16:07:50,482][INFO ][logstash.runner ] Starting Logstash {"logstash.version"=>"7.8.1", "jruby.version"=>"jruby 9.2.11.1 (2.5.7) 2020-03-25 b1f55b1a40 OpenJDK 64-Bit Server VM 11.0.7+10-LTS on 11.0.7+10-LTS +indy +jit [mswin32-x86_64]"}
[2020-10-01T16:07:56,792][ERROR][logstash.config.sourceloader] No configuration found in the configured sources.
[2020-10-01T16:07:59,368][INFO ][logstash.agent ] Successfully started Logstash API endpoint {:port=>9600}
[2020-10-01T16:08:02,762][INFO ][logstash.runner ] Logstash shut down.

Try running with --log.level debug --config.debug and see what it is trying to load.

Hi Badger...

here is the error message..

[2020-10-04T10:57:56,841][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 1, column 1 (byte 1)", :backtrace=>["D:/logstash-7.8.1/logstash-core/lib/logstash/compiler.rb:58:in compile_imperative'", "D:/logstash-7.8.1/logstash-core/lib/logstash/compiler.rb:66:in compile_graph'", "D:/logstash-7.8.1/logstash-core/lib/logstash/compiler.rb:28:in block in compile_sources'", "org/jruby/RubyArray.java:2577:in map'", "D:/logstash-7.8.1/logstash-core/lib/logstash/compiler.rb:27:in compile_sources'", "org/logstash/execution/AbstractPipelineExt.java:181:in initialize'", "org/logstash/execution/JavaBasePipelineExt.java:67:in initialize'", "D:/logstash-7.8.1/logstash-core/lib/logstash/java_pipeline.rb:44:in initialize'", "D:/logstash-7.8.1/logstash-core/lib/logstash/pipeline_action/create.rb:52:in execute'", "D:/logstash-7.8.1/logstash-core/lib/logstash/agent.rb:356:in block in converge_state'"]}

Hi, please format your codes and errors under preformatted text </> or backticks (```) as it is hard to read otherwise.

This error means that the logstash could not parse the configuration.
Usually this indicate that there's either Bad or missing syntax / character / whitespaces / separators in your config files.

To have a better understanding for your issue, would you mind to share your logstash.yml and config files?

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