# Problem to activate x-pack on Logstash

**URL:** <https://discuss.elastic.co/t/problem-to-activate-x-pack-on-logstash/157575>\
**Category:** Logstash\
**Tags:** elastic-stack-monitoring\
**Created:** [November 20, 2018, 3:08pm UTC](https://discuss.elastic.co/t/problem-to-activate-x-pack-on-logstash/157575 "2018-11-20T15:08:49Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alexandre\_Bunn](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/alexandre_bunn/32/49369_2.png) [@Alexandre\_Bunn](https://discuss.elastic.co/u/Alexandre_Bunn)\
**Post date:** [November 20, 2018, 3:08pm UTC](https://discuss.elastic.co/t/problem-to-activate-x-pack-on-logstash/157575/1 "2018-11-20T15:08:49Z")

</div>

Good afternoon

I have a logstash, version 5.6.8, instance running OK, after I've installed the x-pack and add the configurations line below, the daemon doesn't start and log the error below:

[2018-11-20T14:53:03,092][ERROR][logstash.pipeline] A plugin had an unrecoverable error. Will restart this plugin.  
Plugin: \<LogStash::Inputs::Metrics collection\_interval=\>0, collection\_timeout\_interval=\>600, id=\>"0493c74c1dfcdce6bef350f101d3d465019bfd04-1", enable\_metric=\>true, codec=\>\<LogStash::Codecs::Plain id=\>"plain\_1c143796-f137-45d5-835e-bce6a8285f38", enable\_metric=\>true, charset=\>"UTF-8"\>\>  
Error: must be greater than zero  
Exception: ArgumentError  
Stack: /usr/share/logstash/vendor/bundle/jruby/1.9/gems/concurrent-ruby-1.0.5-java/lib/concurrent/timer\_task.rb:247:in `execution\_interval='

- X-pack Configuration lines in logstash.yml

root@pre-logstash01-mia:/etc/logstash# tail logstash.yml

# 

# Where to find custom plugins

# path.plugins:

#Confs do X-pack  
xpack.monitoring.enabled: true  
xpack.monitoring.collection.interval: 60  
xpack.monitoring.elasticsearch.url: "[http://elasticserver:9200](http://elasticserver:9200)"  
xpack.monitoring.elasticsearch.username: ''  
xpack.monitoring.elasticsearch.password: ''

Thanks

Regards

Alexandre Bunn

---

<div class="post-metadata">

**Author:** ![falkenbt](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/falkenbt/32/3772_2.png) [@falkenbt](https://discuss.elastic.co/u/falkenbt)\
**Post date:** [November 27, 2018, 3:08pm UTC](https://discuss.elastic.co/t/problem-to-activate-x-pack-on-logstash/157575/2 "2018-11-27T15:08:20Z")

</div>

Had the same problem - you need to specifiy the unit, so "60s" in your case.  
[https://www.elastic.co/guide/en/elasticsearch/reference/current/monitoring-settings.html#monitoring-collection-settings](https://www.elastic.co/guide/en/elasticsearch/reference/current/monitoring-settings.html#monitoring-collection-settings)

Cheers  
Thomas

---

<div class="post-metadata">

**Author:** ![Alexandre\_Bunn](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/alexandre_bunn/32/49369_2.png) [@Alexandre\_Bunn](https://discuss.elastic.co/u/Alexandre_Bunn)\
**Post date:** [November 27, 2018, 3:15pm UTC](https://discuss.elastic.co/t/problem-to-activate-x-pack-on-logstash/157575/3 "2018-11-27T15:15:07Z")

</div>

Thanks a lot, I've checked the logs in debug level but there weren't any evidence of an error.

Regards

Alexandre Bunn

---

<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:** [December 25, 2018, 3:25pm UTC](https://discuss.elastic.co/t/problem-to-activate-x-pack-on-logstash/157575/4 "2018-12-25T15:25:49Z")

</div>

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