# Attempted to resurrect connection to dead ES instance. 401 Error

**URL:** <https://discuss.elastic.co/t/attempted-to-resurrect-connection-to-dead-es-instance-401-error/189167>\
**Category:** Elasticsearch\
**Created:** [July 5, 2019, 9:15pm UTC](https://discuss.elastic.co/t/attempted-to-resurrect-connection-to-dead-es-instance-401-error/189167 "2019-07-05T21:15:58Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![VeeT](https://avatars.discourse-cdn.com/v4/letter/v/f05b48/32.png) [@VeeT](https://discuss.elastic.co/u/VeeT)\
**Post date:** [July 5, 2019, 9:15pm UTC](https://discuss.elastic.co/t/attempted-to-resurrect-connection-to-dead-es-instance-401-error/189167/1 "2019-07-05T21:15:58Z")

</div>

Hi,  
I'm getting the following error in the logstash log file.

Attempted to resurrect connection to dead ES instance, but got an error. {:url=\>"[http://000.00.00.02:9200/](http://000.00.00.02:9200/)", :error\_type=\>LogStash::Outputs::Ela  
sticSearch::HttpClient::Pool::BadResponseCodeError, :error=\>"Got response code '401' contacting Elasticsearch at URL '[http://000.00.00.02:9200/](http://000.00.00.02:9200/)'"}

I've read in some discussions that this is is due to the logstash username and password. This is what I have in the syslog.conf:

input {  
syslog {  
port =\> 5044  
id =\> "syslog\_id"  
}  
}  
output {  
elasticsearch {  
hosts =\> ["000.00.00.01:9200", "000.00.00.02:9200", "000.00.00.03:9200"]  
sniffing =\> true  
manage\_template =\> false  
index =\> "ss-logs-%{+YYYY.MM.dd}"  
user =\> "{ES\_USER}" password =\> "{ES\_PWD}"  
}  
}

I'm not sure what else is misconfigured. We are using the logstash.keystore. Do I need to specify somewhere to point to the keystore?

We are using ELK 7.0.

Thanks!  
Vee

---

<div class="post-metadata">

**Author:** ![VeeT](https://avatars.discourse-cdn.com/v4/letter/v/f05b48/32.png) [@VeeT](https://discuss.elastic.co/u/VeeT)\
**Post date:** [July 8, 2019, 8:49pm UTC](https://discuss.elastic.co/t/attempted-to-resurrect-connection-to-dead-es-instance-401-error/189167/2 "2019-07-08T20:49:15Z")

</div>

Hi. Anyone has an idea on how to resolve this?

---

<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:** [August 5, 2019, 8:59pm UTC](https://discuss.elastic.co/t/attempted-to-resurrect-connection-to-dead-es-instance-401-error/189167/3 "2019-08-05T20:59:42Z")

</div>

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