Logstash stopped processing because of an error: (SystemExit) exit org.jruby.exceptions.SystemExit: (SystemExit) exit

Hi,
I have a problem with my Logstash Component. When starting I get the following failure and can't find helpful information online. I use a SLES 15 with Logstash 7.16.1 and OpenJDK11.

[2021-12-20T07:56:23,219][INFO ][logstash.runner          ] Log4j configuration path used is: /etc/logstash/log4j2.properties
[2021-12-20T07:56:23,225][INFO ][logstash.runner          ] Starting Logstash {"logstash.version"=>"7.16.1", "jruby.version"=>"jruby 9.2.20.1 (2.5.8) 2021-11-30 2a2962fbd1 OpenJDK 64-Bit Server VM 11.0.13+8 on 11.0.13+8 +indy +jit [linux-x86_64]"}
[2021-12-20T07:56:23,236][FATAL][org.logstash.Logstash    ] Logstash stopped processing because of an error: (SystemExit) exit
org.jruby.exceptions.SystemExit: (SystemExit) exit
        at org.jruby.RubyKernel.exit(org/jruby/RubyKernel.java:747) ~[jruby-complete-9.2.20.1.jar:?]
        at org.jruby.RubyKernel.exit(org/jruby/RubyKernel.java:710) ~[jruby-complete-9.2.20.1.jar:?]
        at usr.share.logstash.lib.bootstrap.environment.<main>(/usr/share/logstash/lib/bootstrap/environment.rb:94) ~[?:?]

May one of you have an idea, what the issue could be?

Thanks for your help

I found the Problem. There was a wrong symbol in the logstash.yml File. The certificat had ["cert"], but the sytem wants only "cert"

@tobias.greis can you say exactly what setting you had the problem with? I would expect you to get the message

Your settings are invalid. Reason: Setting "..." must be a String. Received: ["..."] (Array)

for that.

In the Logstash Configurationxpack certificate_autjority part.

Wrong:

xpack.monitoring.elasticsearch.ssl.certificate_authority: [ "path/to/cert" ]

Correct:

xpack.monitoring.elasticsearch.ssl.certificate_authority: "path/to/cert"

With 7.16.2 I get

Your settings are invalid. Reason: Setting "xpack.monitoring.elasticsearch.ssl.certificate_authority" must be a String. Received: ["path/to/cert"] (Array)
[2021-12-21T12:19:06,197][FATAL][org.logstash.Logstash ] Logstash stopped processing because of an error: (SystemExit) exit

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