# Logstash can not connect Elasticsearch URL

**URL:** <https://discuss.elastic.co/t/logstash-can-not-connect-elasticsearch-url/279257>\
**Category:** Logstash\
**Created:** [July 21, 2021, 11:44am UTC](https://discuss.elastic.co/t/logstash-can-not-connect-elasticsearch-url/279257 "2021-07-21T11:44:51Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Aboli\_77](https://avatars.discourse-cdn.com/v4/letter/a/6de8d8/32.png) [@Aboli\_77](https://discuss.elastic.co/u/Aboli_77)\
**Post date:** [July 21, 2021, 11:44am UTC](https://discuss.elastic.co/t/logstash-can-not-connect-elasticsearch-url/279257/1 "2021-07-21T11:44:51Z")

</div>

Hello Team,  
When I run the following command:  
./logstash -f logstash-conf-name (from /opt/logstash/bin directory)  
I get the error as follows:  
[2020-09-23T22:08:16,324][INFO][logstash.runner] Starting Logstash {"logstash.version"=\>"6.8.6"}  
[2020-09-23T22:08:18,023][ERROR][logstash.licensechecker.licensereader] Unable to retrieve license information from license server {:message=\>"Host name 'ABC.dmz.lava' does not match the certificate subject provided by the peer (CN=ABC.dmz.lava, OU=171855, OU=CATE, O=Xyz group Inc., C=US)"}  
[2020-09-23T22:08:18,067][ERROR][logstash.monitoring.internalpipelinesource] Failed to fetch X-Pack information from Elasticsearch. This is likely due to failure to reach a live Elasticsearch

[WARN] 2021-06-30 07:10:31.160 [Ruby-0-Thread-4: :1] elasticsearch - Attempted to resurrect connection to dead ES instance, but got an error. {:url=\>"[https://XXXXXXX:9200/](https://XXXXXXX:9200/)", :error\_type=\>LogStash::Outputs::ElasticSearch::HttpClient::Pool::HostUnreachableError, :error=\>"Elasticsearch Unreachable: [[https://XXXXXX:9200/](https://XXXXXX:9200/)][Manticore::ClientProtocolException] Received fatal alert: handshake\_failure"}

What file changes do I need to make in order for logstash to recognize elasticsearch?

I would appreciate any advice or hints, thank you!

---

<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:** [July 25, 2021, 11:23pm UTC](https://discuss.elastic.co/t/logstash-can-not-connect-elasticsearch-url/279257/2 "2021-07-25T23:23:28Z")

</div>

What version of Elasticsearch are you using?

---

<div class="post-metadata">

**Author:** ![Aboli\_77](https://avatars.discourse-cdn.com/v4/letter/a/6de8d8/32.png) [@Aboli\_77](https://discuss.elastic.co/u/Aboli_77)\
**Post date:** [July 27, 2021, 11:48am UTC](https://discuss.elastic.co/t/logstash-can-not-connect-elasticsearch-url/279257/3 "2021-07-27T11:48:09Z")

</div>

Version: 6.8.6, Build: default/tar/3d9f765/2019-12-13T17:11:52.013738Z, JVM: 1.8.0\_251

---

<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 24, 2021, 11:48am UTC](https://discuss.elastic.co/t/logstash-can-not-connect-elasticsearch-url/279257/4 "2021-08-24T11:48:45Z")

</div>

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