# Auth problem after installing X-pack on logstash

**URL:** <https://discuss.elastic.co/t/auth-problem-after-installing-x-pack-on-logstash/111936>\
**Category:** Logstash\
**Created:** [December 15, 2017, 9:44am UTC](https://discuss.elastic.co/t/auth-problem-after-installing-x-pack-on-logstash/111936 "2017-12-15T09:44:34Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nima\_van\_Persien](https://avatars.discourse-cdn.com/v4/letter/n/f0a364/32.png) [@Nima\_van\_Persien](https://discuss.elastic.co/u/Nima_van_Persien)\
**Post date:** [December 15, 2017, 9:44am UTC](https://discuss.elastic.co/t/auth-problem-after-installing-x-pack-on-logstash/111936/1 "2017-12-15T09:44:34Z")

</div>

Hi community,  
I have recently installed xpack on Elasticsearch,Kibana and logstash as well.  
but I don't receive any data more!

this is the log which I receive,  
tail -f /var/log/logstash/logstash-plain.log  
[2017-12-15T10:38:39,199][WARN][logstash.outputs.elasticsearch] Attempted to resurrect connection to dead ES instance, but got an error. {:url=\>"[http://127.0.0.1:9200/](http://127.0.0.1:9200/)", :error\_type=\>LogStash::Outputs::ElasticSearch::HttpClient::Pool::BadResponseCodeError, :error=\>"Got response code '401' contacting Elasticsearch at URL '[http://127.0.0.1:9200/](http://127.0.0.1:9200/)'"}

I have added this also in logstash.yml

xpack.monitoring.enabled: true  
xpack.monitoring.elasticsearch.url: "[http://localhost:9200](http://localhost:9200)"  
xpack.monitoring.elasticsearch.username: "logstash\_system"  
xpack.monitoring.elasticsearch.password: "XpasswordX"

there I'm totally new with ELK, I would appreciate if you could give me some advice to solve this problem.

thanks

---

<div class="post-metadata">

**Author:** ![ikakavas](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ikakavas/32/34430_2.png) [@ikakavas](https://discuss.elastic.co/u/ikakavas)\
**Post date:** [December 22, 2017, 9:57am UTC](https://discuss.elastic.co/t/auth-problem-after-installing-x-pack-on-logstash/111936/2 "2017-12-22T09:57:14Z")

</div>

Hi Nima,

This seems like an authentication error. Did you set the internal user passwords as described [here](https://www.elastic.co/guide/en/x-pack/current/setting-up-authentication.html#set-built-in-user-passwords) ?

Can you verify that the password is indeed correct by submitting a request to Elasticsearch, for example:

`curl -u logstash_system -XGET 'http://localhost:9200'`

and typing in the password when prompted.

---

<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:** [January 19, 2018, 10:11am UTC](https://discuss.elastic.co/t/auth-problem-after-installing-x-pack-on-logstash/111936/3 "2018-01-19T10:11:51Z")

</div>

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