Logstash Error: "Your settings are invalid"

Hi guys,

I just upgraded elk stack from 7.15.0 to 7.16.0.

Everything is working fine except Logstash.

It ends up failing to start. I checked the system logs and found the following error.

Error:

logstash[20212]: OpenJDK 64-Bit Server VM warning: Option UseConcMarkSweepGC was deprecated in version 9.0 and will likely be removed in a future release.
logstash[20212]: Sending Logstash logs to /var/log/logstash which is now configured via log4j2.properties
logstash[20212]: [2021-12-12T02:43:59,474][INFO ][logstash.runner          ] Log4j configuration path used is: /etc/logstash/log4j2.properties
logstash[20212]: [2021-12-12T02:43:59,486][INFO ][logstash.runner          ] Starting Logstash {"logstash.version"=>"7.16.0", "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]"}
logstash[20212]: Your settings are invalid. Reason: super: no superclass method `validate' for #<LogStash::Setting::DeprecatedAlias:0x7488db31>
logstash[20212]: [2021-12-12T02:43:59,519][FATAL][org.logstash.Logstash    ] Logstash stopped processing because of an error: (SystemExit) exit
logstash[20212]: org.jruby.exceptions.SystemExit: (SystemExit) exit
logstash[20212]: #011at org.jruby.RubyKernel.exit(org/jruby/RubyKernel.java:747) ~[jruby-complete-9.2.20.1.jar:?]
logstash[20212]: #011at org.jruby.RubyKernel.exit(org/jruby/RubyKernel.java:710) ~[jruby-complete-9.2.20.1.jar:?]
logstash[20212]: #011at usr.share.logstash.lib.bootstrap.environment.<main>(/usr/share/logstash/lib/bootstrap/environment.rb:94) ~[?:?]
systemd[1]: logstash.service: Main process exited, code=exited, status=1/FAILURE
systemd[1]: logstash.service: Failed with result 'exit-code'.
systemd[1]: logstash.service: Service hold-off time over, scheduling restart.
systemd[1]: logstash.service: Scheduled restart job, restart counter is at 14.
systemd[1]: Stopped logstash.

The 0x7488db31 keeps changing at every restart try.

I tired to downgrade Logstash to 7.15.0 and it works fine. The error only shows up at 7.16.0

Please help me figure out as to what is happening.

Regards,
Neerajkumar G.

Perhaps you have http.enabled in your logstash.yml and you need to change that to api.enabled. See this PR.

Hi Badger,

This worked like a charm!!

Thanks a ton for your help!!

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