# Logstash v.6 error after x-pack installation

**URL:** <https://discuss.elastic.co/t/logstash-v-6-error-after-x-pack-installation/102712>\
**Category:** Logstash\
**Created:** [October 4, 2017, 1:46pm UTC](https://discuss.elastic.co/t/logstash-v-6-error-after-x-pack-installation/102712 "2017-10-04T13:46:37Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![moriol](https://avatars.discourse-cdn.com/v4/letter/m/439d5e/32.png) [@moriol](https://discuss.elastic.co/u/moriol)\
**Post date:** [October 4, 2017, 1:46pm UTC](https://discuss.elastic.co/t/logstash-v-6-error-after-x-pack-installation/102712/1 "2017-10-04T13:46:37Z")

</div>

Hello,

I have installed x-pack for Logstash. When I try to run configuration file, I get the following error:  
[FATAL] 2017-10-04 15:41:55.607 [LogStash::Runner] runner - An unexpected error occurred! {:error=\>#\<NoMethodError: undefined method `register_pipeline' for #<LogStash::Agent:0x10e9b3c1>>, :backtrace=>["/usr/share/logstash/vendor/bundle/jruby/2.3.0/gems/x-pack-5.6.2-java/lib/monitoring/monitoring.rb:102:in`after\_initialize'", "/usr/share/logstash/logstash-core/lib/logstash/event\_dispatcher.rb:34:in `block in fire'", "/usr/share/logstash/logstash-core/lib/logstash/event_dispatcher.rb:32:in`fire'", "/usr/share/logstash/logstash-core/lib/logstash/agent.rb:77:in `initialize'", "/usr/share/logstash/logstash-core/lib/logstash/runner.rb:438:in`create\_agent'", "/usr/share/logstash/logstash-core/lib/logstash/runner.rb:351: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:232: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:71:in `'"]}

I have updated the logstash.yml file as per:  
[https://www.elastic.co/guide/en/x-pack/master/monitoring-logstash.html](https://www.elastic.co/guide/en/x-pack/master/monitoring-logstash.html)

Any help appreciated.

---

<div class="post-metadata">

**Author:** ![moriol](https://avatars.discourse-cdn.com/v4/letter/m/439d5e/32.png) [@moriol](https://discuss.elastic.co/u/moriol)\
**Post date:** [October 5, 2017, 9:07am UTC](https://discuss.elastic.co/t/logstash-v-6-error-after-x-pack-installation/102712/2 "2017-10-05T09:07:35Z")

</div>

Any idea how to troubleshoot this further?

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [October 6, 2017, 4:38am UTC](https://discuss.elastic.co/t/logstash-v-6-error-after-x-pack-installation/102712/3 "2017-10-06T04:38:28Z")

</div>

What does the config file look like?

---

<div class="post-metadata">

**Author:** ![moriol](https://avatars.discourse-cdn.com/v4/letter/m/439d5e/32.png) [@moriol](https://discuss.elastic.co/u/moriol)\
**Post date:** [October 6, 2017, 7:23am UTC](https://discuss.elastic.co/t/logstash-v-6-error-after-x-pack-installation/102712/4 "2017-10-06T07:23:50Z")

</div>

My configuration in logstash is as below:  
xpack.monitoring.elasticsearch.url: "[http://localhost:9200](http://localhost:9200)"  
xpack.monitoring.elasticsearch.username: "logstash\_system"  
xpack.monitoring.elasticsearch.password: "changeme"

I can also authenticate with this user as below:  
curl -u logstash\_system '[http://localhost:9200/\_xpack/security/\_authenticate?pretty=true](http://localhost:9200/_xpack/security/_authenticate?pretty=true)'  
Enter host password for user 'logstash\_system':  
{  
"username" : "logstash\_system",  
"roles" : [  
"logstash\_system"  
],  
"full\_name" : null,  
"email" : null,  
"metadata" : {  
"\_reserved" : true  
},  
"enabled" : true  
}  
When I do plugin list for logstash, it shows up as installed.

I installed x-pack version 5.6.2 and it shows up in Gemfile as below:  
gem "x-pack", "= 5.6.2"

I enabled xpack for Kibana and ES as well, I see these in Kibana in monitoring tab. The only one I can't get working is Logstash.

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [October 6, 2017, 7:27am UTC](https://discuss.elastic.co/t/logstash-v-6-error-after-x-pack-installation/102712/5 "2017-10-06T07:27:39Z")

</div>

So you are specifically having issues getting monitoring working?

---

<div class="post-metadata">

**Author:** ![moriol](https://avatars.discourse-cdn.com/v4/letter/m/439d5e/32.png) [@moriol](https://discuss.elastic.co/u/moriol)\
**Post date:** [October 6, 2017, 11:32am UTC](https://discuss.elastic.co/t/logstash-v-6-error-after-x-pack-installation/102712/7 "2017-10-06T11:32:15Z")

</div>

Since installing x-pack, Logstash doesn't work anymore. When starting logstash- my pipelines fail due to the error above.  
So issue is with Logstash working after x-pack installation.

The reason why I installed x-pack is to get monitoring of Logstash in Kibana. But now it seems with xpack enabled, I cant get Logstash to work anymore, unless I remove x-pack.

Would be great to have x-pack working though!

---

<div class="post-metadata">

**Author:** ![TimV](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/timv/32/13162_2.png) [@TimV](https://discuss.elastic.co/u/TimV)\
**Post date:** [October 9, 2017, 2:24am UTC](https://discuss.elastic.co/t/logstash-v-6-error-after-x-pack-installation/102712/8 "2017-10-09T02:24:42Z")

</div>

From the version numbers you have, it looks like you tried to install _x-pack 5.6_ into _logstash 6.0 (beta)_

That will definitely not work. You need to install the correct version of x-pack to match your version of logstash.

---

<div class="post-metadata">

**Author:** ![moriol](https://avatars.discourse-cdn.com/v4/letter/m/439d5e/32.png) [@moriol](https://discuss.elastic.co/u/moriol)\
**Post date:** [October 9, 2017, 1:12pm UTC](https://discuss.elastic.co/t/logstash-v-6-error-after-x-pack-installation/102712/9 "2017-10-09T13:12:20Z")

</div>

Thanks for the info, I thought x-pack 5.6.2 would work with Logstash 6.0 but I see now this is not the case.  
I will upgrade x-pack and come back if I have any issues.

---

<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 6, 2017, 1:12pm UTC](https://discuss.elastic.co/t/logstash-v-6-error-after-x-pack-installation/102712/10 "2017-11-06T13:12:39Z")

</div>

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