Error ArgumentError Setting "xpack.monitoring.elasticsearch.hosts" hasn't been registered

(Adrian Hove) #1

I get the error below:

root@b48c5173f995:/var/www# /usr/share/logstash/bin/logstash -e 'input { stdin { } } output { stdout {} }' 

Sending Logstash logs to /usr/share/logstash/logs which is now configured via log4j2.properties [2019-03-14T22:05:37,889][FATAL][logstash.runner          ] An unexpected error occurred! {:error=>#<ArgumentError: Setting "xpack.monitoring.elasticsearch.hosts" hasn't been registered>, :backtrace=>["/usr/share/logstash/logstash-core/lib/logstash/settings.rb:36:in `get_setting'", "/usr/share/logstash/logstash-core/lib/logstash/settings.rb:69:in `set_value'", "/usr/share/logstash/logstash-core/lib/logstash/settings.rb:88:in `block in merge'", "org/jruby/RubyHash.java:1343:in `each'", "/usr/share/logstash/logstash-core/lib/logstash/settings.rb:88:in `merge'", "/usr/share/logstash/logstash-core/lib/logstash/settings.rb:137:in `validate_all'", "/usr/share/logstash/logstash-core/lib/logstash/runner.rb:278:in `execute'", "/usr/share/logstash/vendor/bundle/jruby/2.3.0/gems/clamp-0.6.5/lib/clamp/command.rb:67:in `run'", "/usr/share/logstash/logstash-core/lib/logstash/runner.rb:237:in `run'",
    "/usr/share/logstash/vendor/bundle/jruby/2.3.0/gems/clamp-0.6.5/lib/clamp/command.rb:132:in `run'", "/usr/share/logstash/lib/bootstrap/environment.rb:73:in `<main>'"]} [2019-03-14T22:05:38,228][ERROR][org.logstash.Logstash    ] java.lang.IllegalStateException: Logstash stopped processing because of an error: (SystemExit) exit

This is whats in my logstash.yml

http: 
  host: "0.0.0.0"
node: 
  name: logstash
xpack: 
  monitoring: 
    elasticsearch: 
      hosts: 
        - "http://elasticsearch:9200"
#2

I've seen that when xpack is not installed.

(Adrian Hove) #3

I tried to install X-Pack

root@b48c5173f995:/var/www# /usr/share/logstash/bin/logstash-plugin install x-pack
Logstash now contains X-Pack by default, there is no longer any need to install
it as it is already present.
(system) closed #4

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