# Logstash connection refused (using searchguard + monitoring x pack)

**URL:** <https://discuss.elastic.co/t/logstash-connection-refused-using-searchguard-monitoring-x-pack/135874>\
**Category:** Logstash\
**Created:** [June 14, 2018, 8:45am UTC](https://discuss.elastic.co/t/logstash-connection-refused-using-searchguard-monitoring-x-pack/135874 "2018-06-14T08:45:50Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![kimfut](https://avatars.discourse-cdn.com/v4/letter/k/b9e5f3/32.png) [@kimfut](https://discuss.elastic.co/u/kimfut)\
**Post date:** [June 14, 2018, 8:45am UTC](https://discuss.elastic.co/t/logstash-connection-refused-using-searchguard-monitoring-x-pack/135874/1 "2018-06-14T08:45:50Z")

</div>

hello everyone ,

i am using elk stack via docker , for security access i use searchguard tool , then for monitor my stack i added x pack plugin with making security and other service that not free as false

> ( xpack.monitoring.enabled: true  
> xpack.graph.enabled: false  
> xpack.ml.enabled: false  
> xpack.security.enabled: false  
> xpack.watcher.enabled: false  
> in elasticseach.yml and kibana.yml )  
> so i could monitor kibana and ES and all okay for this part , but when i would added logstash to monitor i got an error and logstash wont start
> 
> logstash\_1 | [2018-06-14T08:42:23,746][WARN][logstash.outputs.elasticsearch] Attempted to resurrect connection to dead ES instance, but got an error. {:url=\>"[http://localhost:9200/](http://localhost:9200/)", :error\_type=\>LogStash::Outputs::Elasticsearch::HttpClient::Pool::HostUnreachableError, :error=\>"Elasticsearch Unreachable: [[http://localhost:9200/](http://localhost:9200/)][Manticore::SocketException] Connection refused (Connection refused)"}

> elasticsearch\_1 | [2018-06-14T08:42:24,727][WARN][c.f.s.a.BackendRegistry] Authentication finally failed for logstash

i dont know why the problem does not appear with kibana and ES but it did with logstash

can someone help me please

thank you

---

<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:** [June 14, 2018, 8:59am UTC](https://discuss.elastic.co/t/logstash-connection-refused-using-searchguard-monitoring-x-pack/135874/2 "2018-06-14T08:59:11Z")

</div>

Looks like this has to do with searchguard, you will be probably better off posting in [https://github.com/floragunncom/search-guard](https://github.com/floragunncom/search-guard) after you consult the plugins documentation.

---

<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:** [July 12, 2018, 8:59am UTC](https://discuss.elastic.co/t/logstash-connection-refused-using-searchguard-monitoring-x-pack/135874/3 "2018-07-12T08:59:19Z")

</div>

Closed on July 12, 2018, 8:59am UTC

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