Logstash v6.0 multi pipleline faining to run

Thanks for reading this!
I am getting the following error when running logstash v6.0 with multi pipleline on Centos 7.3:

sudo /usr/share/logstash/bin/logstash
Sending Logstash's logs to /var/log/logstash which is now configured via log4j2.properties
ERROR: Failed to read pipelines yaml file. Location: /usr/share/logstash/config/pipelines.yml
usage:
bin/logstash -f CONFIG_PATH [-t] [-r] [] [-w COUNT] [-l LOG]
bin/logstash --modules MODULE_NAME [-M "MODULE_NAME.var.PLUGIN_TYPE.PLUGIN_NAME.VARIABLE_NAME=VALUE"] [-t] [-w COUNT] [-l LOG]
bin/logstash -e CONFIG_STR [-t] [--log.level fatal|error|warn|info|debug|trace] [-w COUNT] [-l LOG]
bin/logstash -i SHELL [--log.level fatal|error|warn|info|debug|trace]
bin/logstash -V [--log.level fatal|error|warn|info|debug|trace]
bin/logstash --help

My pipelines file is as follows:
cat pipelines.yml

  • pipeline.id: infl-remote
    path.config: "/etc/logstash/conf.d/logstash-influx-data.conf"
  • pipeline.id: elas-remote
    path.config: "/etc/logstash/conf.d/logstash-es-data.conf"

I can run each pipeline individually successfully. Pipelines.yml has full permissions.
Any clues?

Any clue how to troubleshoot this? debug output doesnt tell me more, except same error.

I found the error. I had only one white space before the path.config. There are two white spaces needed, otherwise pipelines will fail.

1 Like

Yeah, we have very recently become aware of this. The yaml parser that we use does not give us enough feedback if this happens and so we can't give you that feedback in turn.

We are looking to use a different yaml parser.

1 Like

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