# Resurrect Connection to dead ES Instance

**URL:** <https://discuss.elastic.co/t/resurrect-connection-to-dead-es-instance/300265>\
**Category:** Logstash\
**Created:** [March 22, 2022, 5:08am UTC](https://discuss.elastic.co/t/resurrect-connection-to-dead-es-instance/300265 "2022-03-22T05:08:52Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![karewise\_tech](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/karewise_tech/32/102077_2.png) [@karewise\_tech](https://discuss.elastic.co/u/karewise_tech)\
**Post date:** [March 22, 2022, 5:08am UTC](https://discuss.elastic.co/t/resurrect-connection-to-dead-es-instance/300265/1 "2022-03-22T05:08:52Z")

</div>

[logstash.outputs.Elasticsearch][main] Attempted to resurrect connection to dead ES instance, but got an error {:url=\>"[http://elastic:xxxxxx@elasticsearch:9200/](http://elastic:xxxxxx@elasticsearch:9200/)", :exception=\>LogStash::Outputs::Elasticsearch::HttpClient::Pool::HostUnreachableError, :message=\>"Elasticsearch Unreachable: [[http://elasticsearch:9200/](http://elasticsearch:9200/)][Manticore::ResolutionFailure] Elasticsearch"}

**My Logstash.conf file :**

input {  
jdbc {  
jdbc\_driver\_library =\> "/usr/share/logstash/logstash-core-plugin-api/mysql-connector-java-8.0.28/mysql-connector-java-8.0.28.jar"  
jdbc\_driver\_class =\> "com.mysql.jdbc.Driver"  
jdbc\_connection\_string =\> "jdbc:mysql://Ip-address:port/Database\_name"  
jdbc\_user =\> "user"  
jdbc\_password =\> "password"  
statement =\> "SELECT \* FROM users"  
schedule =\> "\* \* \* \* \*" jdbc\_paging\_enabled =\> "true"  
jdbc\_page\_size =\> "50000"  
}  
}  
output {  
Elasticsearch {  
hosts =\> "Elasticsearch:9200"  
user =\> "elastic"  
password =\> "password"  
document\_type =\> "data"  
document\_id =\> "%{id}"  
index =\> "logstashmysql"  
}  
}

Iam trying to connect my Database to kibana for metrics using logstash, its not happening, iam trying this from 2 weeks changing the conf file but no solution. need help on this.

**The below is my output file**

curl -XGET [http://elastic:Y2SBU9TXk99ZPjSWgrLJ@ip-address:9200](http://elastic:Y2SBU9TXk99ZPjSWgrLJ@ip-address:9200)  
{  
"name" : "b5b66de9f9f3",  
"cluster\_name" : "my-Elasticsearch-cluster",  
"cluster\_uuid" : "nkRoFq5zSxq-TQSpmnuiGQ",  
"version" : {  
"number" : "8.1.0",  
"build\_flavor" : "default",  
"build\_type" : "docker",  
"build\_hash" : "3700f7679f7d95e36da0b43762189bab189bc53a",  
"build\_date" : "2022-03-03T14:20:00.690422633Z",  
"build\_snapshot" : false,  
"lucene\_version" : "9.0.0",  
"minimum\_wire\_compatibility\_version" : "7.17.0",  
"minimum\_index\_compatibility\_version" : "7.0.0"  
},  
"tagline" : "You Know, for Search"  
}

---

<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:** [April 19, 2022, 5:09am UTC](https://discuss.elastic.co/t/resurrect-connection-to-dead-es-instance/300265/2 "2022-04-19T05:09:03Z")

</div>

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