[HELP] I Broke my logstash.yml

I'm trying use multiple pipelines and made some modifications in logstash.yml and now i get this error:

Sending Logstash logs to /opt/bitnami/logstash/logs which is now configured via log4j2.properties
[2019-05-02T18:47:23,615][FATAL][logstash.runner          ] An unexpected error occurred! {:error=>#<ArgumentError: Setting "" hasn't been registered>, :backtrace=>["/opt/bitnami/logstash/logstash-core/lib/logstash/settings.rb:36:in `get_setting'", "/opt/bitnami/logstash/logstash-core/lib/logstash/settings.rb:69:in `set_value'", "/opt/bitnami/logstash/logstash-core/lib/logstash/settings.rb:88:in `block in merge'", "org/jruby/RubyHash.java:1419:in `each'", "/opt/bitnami/logstash/logstash-core/lib/logstash/settings.rb:88:in `merge'", "/opt/bitnami/logstash/logstash-core/lib/logstash/settings.rb:137:in `validate_all'", "/opt/bitnami/logstash/logstash-core/lib/logstash/runner.rb:278:in `execute'", "/opt/bitnami/logstash/vendor/bundle/jruby/2.5.0/gems/clamp-0.6.5/lib/clamp/command.rb:67:in `run'", "/opt/bitnami/logstash/logstash-core/lib/logstash/runner.rb:237:in `run'", "/opt/bitnami/logstash/vendor/bundle/jruby/2.5.0/gems/clamp-0.6.5/lib/clamp/command.rb:132:in `run'", "/opt/bitnami/logstash/lib/bootstrap/environment.rb:73:in `<main>'"]}
[2019-05-02T18:47:23,638][ERROR][org.logstash.Logstash    ] java.lang.IllegalStateException: Logstash stopped processing because of an error: (SystemExit) exit

My logstash.yml:

- pipeline.id: mw
  path.config: "/opt/logstash/conf/mw.conf"
- pipeline.id: uw
  path.config: "/opt/logstash/conf/uw.conf"
- pipeline.id: gw
  path.config: "/opt/logstash/conf/gw.conf"
- pipeline.id: ln
  path.config: "/opt/logstash/conf/ln.conf"
- pipeline.id: sp
  path.config: "/opt/logstash/conf/sp.conf"
- pipeline.id: spw
  path.config: "/opt/logstash/conf/spw.conf"

My pipelines.yml

 - pipeline.id: mw
   pipeline.workers: 1
   path.config: "/opt/logstash/conf/mw.conf"
 - pipeline.id: uw
   pipeline.workers: 1
   path.config: "/opt/logstash/conf/uw.conf"
 - pipeline.id: gw
   pipeline.workers: 1
   path.config: "/opt/logstash/conf/gw.conf"
 - pipeline.id: ln
   pipeline.workers: 1
   path.config: "/opt/logstash/conf/ln.conf"
 - pipeline.id: sp
   pipeline.workers: 1
   path.config: "/opt/logstash/conf/sp.conf"
 - pipeline.id: spw
   pipeline.workers: 1
   path.config: "/opt/logstash/conf/spw.conf"

I tested each of .conf and alr are OK.

How can I fix it?

Can you edit your post and replace the second copy of pipelines.yml with your logstash.yml?

@Badger I'm sorry but I do not understand where you want to go with this modification.

I would expect your logstash.yml to contain something like

path.data: /var/lib/logstash
path.logs: /var/log/logstash

Yours appears to be a copy of pipelines.yml

I'm using a AWS instance created by bitnami so all this things are configured by default and don't need be explicit at files.

After over 10⁹⁹⁹⁹⁹⁹⁹⁹⁹⁹⁹⁹⁹⁹ tests I finally could make it work!

It's seem the "basic" structure are this:

pipeline.id:
path.config:
pipeline.workers:
pipeline.batch.size:
pipeline.batch.delay:

Without " - " (dash)

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