# Enabling X-pack monitoring for logstash

**URL:** https://discuss.elastic.co/t/enabling-x-pack-monitoring-for-logstash/105951
**Category:** Logstash
**Created:** [October 31, 2017, 8:35pm UTC](https://discuss.elastic.co/t/enabling-x-pack-monitoring-for-logstash/105951 "2017-10-31T20:35:40Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![kenny123](https://avatars.discourse-cdn.com/v4/letter/k/7ab992/32.png) [@kenny123](https://discuss.elastic.co/u/kenny123)
#### Post date: [October 31, 2017, 8:35pm UTC](https://discuss.elastic.co/t/enabling-x-pack-monitoring-for-logstash/105951/1 "2017-10-31T20:35:40Z")

</div>

HI,

I recently started learning ELK . I am trying to setup monitoring X-pack on logstash but couldn't find the directory called plugins like in Elasticsearch or kibana . Moreover , can I please know how to configure below settings in logstash . Should we need to configure them in logstash.yml ? because I created seperate logstash conf file.

> xpack.monitoring.enabled: "true"
> 
> xpack.monitoring.elasticsearch.url: "[http://xx.xx.xx.xx:9200](http://xx.xx.xx.xx:9200)"
> 
> xpack.monitoring.elasticsearch.username: "elastic"
> 
> xpack.monitoring.elasticsearch.password: "changeme"

---

<div class="post-metadata">

### Author: ![RobBavey](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/robbavey/32/20421_2.png) [@RobBavey](https://discuss.elastic.co/u/RobBavey)
#### Post date: [October 31, 2017, 8:47pm UTC](https://discuss.elastic.co/t/enabling-x-pack-monitoring-for-logstash/105951/2 "2017-10-31T20:47:47Z")

</div>

Hi @kenny123

Assuming you have successfully installed x-pack for Logstash, you should put the x-pack monitoring configuration settings in your existing logstash.yml file.

Rob

---

<div class="post-metadata">

### Author: ![kenny123](https://avatars.discourse-cdn.com/v4/letter/k/7ab992/32.png) [@kenny123](https://discuss.elastic.co/u/kenny123)
#### Post date: [October 31, 2017, 9:10pm UTC](https://discuss.elastic.co/t/enabling-x-pack-monitoring-for-logstash/105951/3 "2017-10-31T21:10:09Z")

</div>

Thank you for the reply. I downloaded the zipped x-pack file to logstash and unzipped it . I specified the parameters in logstash.yml but I am getting an below error

```
[2017-10-31T13:51:02,702][INFO][logstash.modules.scaffold] Initializing module {:module_name=>"fb_apache", :directory=>"/root/logstash-sap/modules/fb_apache/configuration"}
[2017-10-31T13:51:02,713][INFO][logstash.modules.scaffold] Initializing module {:module_name=>"netflow", :directory=>"/root/logstash-sap/modules/netflow/configuration"}
[2017-10-31T13:51:02,731][FATAL][logstash.runner] An unexpected error occurred! {:error=>#<ArgumentError: Setting "xpack.monitoring.enabled" hasn't been registered>, :backtrace=>["/root/logstash-sap/logstash-core/lib/logstash/settings.rb:32:in `get_setting'", "/root/logstash-sap/logstash-core/lib/logstash/settings.rb:64:in `set_value'", "/root/logstash-sap/logstash-core/lib/logstash/settings.rb:83:in `merge'", "org/jruby/RubyHash.java:1342:in `each'", "/root/logstash-sap/logstash-core/lib/logstash/settings.rb:83:in `merge'", "/root/logstash-sap/logstash-core/lib/logstash/settings.rb:135:in `validate_all'", "/root/logstash-sap/logstash-core/lib/logstash/runner.rb:243:in `execute'", "/root/logstash-sap/vendor/bundle/jruby/1.9/gems/clamp-0.6.5/lib/clamp/command.rb:67:in `run'", "/root/logstash-sap/logstash-core/lib/logstash/runner.rb:204:in `run'", "/root/logstash-sap/vendor/bundle/jruby/1.9/gems/clamp-0.6.5/lib/clamp/command.rb:132:in `run'", "/root/logstash-sap/lib/bootstrap/environment.rb:71:in `(root)'"]}
```

---

<div class="post-metadata">

### Author: ![RobBavey](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/robbavey/32/20421_2.png) [@RobBavey](https://discuss.elastic.co/u/RobBavey)
#### Post date: [October 31, 2017, 9:15pm UTC](https://discuss.elastic.co/t/enabling-x-pack-monitoring-for-logstash/105951/4 "2017-10-31T21:15:39Z")

</div>

Hi @kenny123

That sounds like x-pack hasn't been installed for Logstash - did you follow all of the the [installation instructions](https://www.elastic.co/guide/en/logstash/5.6/installing-xpack-log.html) - in particular the command to install the plugin by invoking either  
`bin/logstash-plugin install x-pack` or  
`bin/logstash-plugin install file:///path/to/file/x-pack-5.6.3.zip` if your logstash server does not have internet access.

---

<div class="post-metadata">

### Author: ![kenny123](https://avatars.discourse-cdn.com/v4/letter/k/7ab992/32.png) [@kenny123](https://discuss.elastic.co/u/kenny123)
#### Post date: [October 31, 2017, 9:42pm UTC](https://discuss.elastic.co/t/enabling-x-pack-monitoring-for-logstash/105951/5 "2017-10-31T21:42:53Z")

</div>

Thank you very much. I didn't install it correctly .. After re-installation , it is working fine .

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [November 28, 2017, 9:42pm UTC](https://discuss.elastic.co/t/enabling-x-pack-monitoring-for-logstash/105951/6 "2017-11-28T21:42:54Z")

</div>

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