/usr/share/logstash/bin/logstash --config.test_and_exit -f nginx.conf --path.settings /etc/logstash
-----------------Getting this error when i run the logstash ---------------------------------------------
Thread.exclusive is deprecated, use Thread::Mutex
Sending Logstash logs to /var/log/logstash which is now configured via log4j2.properties
[2022-01-21T15:10:27,070][FATAL][logstash.runner ] An unexpected error occurred! {:error=>#<ArgumentError: Setting "api.http.host" hasn't been registered>, :backtrace=>["/usr/share/logstash/logstash-core/lib/logstash/settings.rb:69:in get_setting'", "/usr/share/logstash/logstash-core/lib/logstash/settings.rb:102:in
set_value'", "/usr/share/logstash/logstash-core/lib/logstash/settings.rb:121:in block in merge'", "org/jruby/RubyHash.java:1417:in
each'", "/usr/share/logstash/logstash-core/lib/logstash/settings.rb:121:in merge'", "/usr/share/logstash/logstash-core/lib/logstash/settings.rb:179:in
validate_all'", "/usr/share/logstash/logstash-core/lib/logstash/runner.rb:283:in execute'", "/usr/share/logstash/vendor/bundle/jruby/2.5.0/gems/clamp-0.6.5/lib/clamp/command.rb:67:in
run'", "/usr/share/logstash/logstash-core/lib/logstash/runner.rb:242:in run'", "/usr/share/logstash/vendor/bundle/jruby/2.5.0/gems/clamp-0.6.5/lib/clamp/command.rb:132:in
run'", "/usr/share/logstash/lib/bootstrap/environment.rb:73:in `'"]}
[2022-01-21T15:10:27,101][ERROR][org.logstash.Logstash ] java.lang.IllegalStateException: Logstash stopped processing because of an error: (SystemExit) exit