# Couldn't connect to any of the configured Elasticsearch hosts

**URL:** <https://discuss.elastic.co/t/couldnt-connect-to-any-of-the-configured-elasticsearch-hosts/238166>\
**Category:** Beats\
**Tags:** winlogbeat\
**Created:** [June 23, 2020, 12:50am UTC](https://discuss.elastic.co/t/couldnt-connect-to-any-of-the-configured-elasticsearch-hosts/238166 "2020-06-23T00:50:19Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![ibadawe](https://avatars.discourse-cdn.com/v4/letter/i/7ea924/32.png) [@ibadawe](https://discuss.elastic.co/u/ibadawe)\
**Post date:** [June 23, 2020, 12:50am UTC](https://discuss.elastic.co/t/couldnt-connect-to-any-of-the-configured-elasticsearch-hosts/238166/1 "2020-06-23T00:50:19Z")

</div>

Hello,

i have configured all settings in configuration file at winlogbeat.yml, to send logs to Elastic.  
but unfortunately i couldn't receive any logs at Elastic and when i run the below command in Powershell ".\winlogbeat.exe setup".

Exiting: Couldn't connect to any of the configured Elasticsearch hosts. Errors: [Error connection to Elasticsearch [http://x.x.x.x:9200](http://x.x.x.x:9200): Get [http://x.x.x.x:9200](http://x.x.x.x:9200): dial tcp x.x.x.x:9200: connectex: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.]

---

<div class="post-metadata">

**Author:** ![wangqinghuan](https://avatars.discourse-cdn.com/v4/letter/w/d26b3c/32.png) [@wangqinghuan](https://discuss.elastic.co/u/wangqinghuan)\
**Post date:** [June 23, 2020, 1:29am UTC](https://discuss.elastic.co/t/couldnt-connect-to-any-of-the-configured-elasticsearch-hosts/238166/2 "2020-06-23T01:29:23Z")

</div>

Could you ping your Elasticsearch hosts?

---

<div class="post-metadata">

**Author:** ![ibadawe](https://avatars.discourse-cdn.com/v4/letter/i/7ea924/32.png) [@ibadawe](https://discuss.elastic.co/u/ibadawe)\
**Post date:** [June 23, 2020, 1:41am UTC](https://discuss.elastic.co/t/couldnt-connect-to-any-of-the-configured-elasticsearch-hosts/238166/3 "2020-06-23T01:41:36Z")

</div>

Yes, I can ping to and back

---

<div class="post-metadata">

**Author:** ![wangqinghuan](https://avatars.discourse-cdn.com/v4/letter/w/d26b3c/32.png) [@wangqinghuan](https://discuss.elastic.co/u/wangqinghuan)\
**Post date:** [June 23, 2020, 1:53am UTC](https://discuss.elastic.co/t/couldnt-connect-to-any-of-the-configured-elasticsearch-hosts/238166/4 "2020-06-23T01:53:08Z")

</div>

Could you telnet x.x.x.x 9200 ?

---

<div class="post-metadata">

**Author:** ![ibadawe](https://avatars.discourse-cdn.com/v4/letter/i/7ea924/32.png) [@ibadawe](https://discuss.elastic.co/u/ibadawe)\
**Post date:** [June 23, 2020, 12:33pm UTC](https://discuss.elastic.co/t/couldnt-connect-to-any-of-the-configured-elasticsearch-hosts/238166/5 "2020-06-23T12:33:27Z")

</div>

can't telnet against this server even i changed Destination port and used 80,443,9200 and many other ports

---

<div class="post-metadata">

**Author:** ![wangqinghuan](https://avatars.discourse-cdn.com/v4/letter/w/d26b3c/32.png) [@wangqinghuan](https://discuss.elastic.co/u/wangqinghuan)\
**Post date:** [June 24, 2020, 1:06am UTC](https://discuss.elastic.co/t/couldnt-connect-to-any-of-the-configured-elasticsearch-hosts/238166/6 "2020-06-24T01:06:16Z")

</div>

> [@ibadawe](#):
>
> 80,443,9200

what's the network.host value in elasticsearch.yaml? Change the network.host value to your authentic ip,  
such as  
`network.host: 0.0.0.0`

---

<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 22, 2020, 3:06am UTC](https://discuss.elastic.co/t/couldnt-connect-to-any-of-the-configured-elasticsearch-hosts/238166/7 "2020-07-22T03:06:16Z")

</div>

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