# Kibana couldn't connect to remote elastic-search cluster

**URL:** https://discuss.elastic.co/t/kibana-couldnt-connect-to-remote-elastic-search-cluster/347508
**Category:** Kibana
**Tags:** docker
**Created:** [November 20, 2023, 7:41am UTC](https://discuss.elastic.co/t/kibana-couldnt-connect-to-remote-elastic-search-cluster/347508 "2023-11-20T07:41:29Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![nazmus\_sakib\_1987](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nazmus_sakib_1987/32/122876_2.png) [@nazmus\_sakib\_1987](https://discuss.elastic.co/u/nazmus_sakib_1987)
#### Post date: [November 20, 2023, 7:41am UTC](https://discuss.elastic.co/t/kibana-couldnt-connect-to-remote-elastic-search-cluster/347508/1 "2023-11-20T07:41:29Z")

</div>

I'm configuring `kibana:6.8.23` for remote `elasticsearch host` . I used docker compose file to install it. I use the env `ELASTICSEARCH_HOSTS: '["my elasticsearch host"]'` . But find that `/usr/share/kibana/config/kibana.yaml`file not updated with the **env** from compose file. Then I tried edit file inside docker container and update the `elasticsearch.hosts: ["my elasticserch host"]` But connection is not establishing. I got the following error

2023-11-19 08:53:55 {"type":"log","@timestamp":"2023-11-19T08:53:55Z","tags":["warning","elasticsearch","admin"],"pid":1,"message":"Unable to revive connection: my elasticsearch host"} 2023-11-19 08:53:57 {"type":"log","@timestamp":"2023-11-19T08:53:57Z","tags":["license","warning","xpack"],"pid":1,"message":"License information from the X-Pack plugin could not be obtained from Elasticsearch for the [data] cluster. Error: Request Timeout after 30000ms"}

---

<div class="post-metadata">

### Author: ![carly.richmond](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/carly.richmond/32/104935_2.png) [@carly.richmond](https://discuss.elastic.co/u/carly.richmond)
#### Post date: [November 20, 2023, 12:11pm UTC](https://discuss.elastic.co/t/kibana-couldnt-connect-to-remote-elastic-search-cluster/347508/2 "2023-11-20T12:11:04Z")

</div>

Hi @nazmus_sakib_1987,

Welcome to the community! Can you please sure you're configuration?

Can I confirm you're using Kibana version 6.8? Which version of Elasticsearch are you using? If you are using version 6.8 I would recommend updating to an in support version as per the [support matrix](https://www.elastic.co/support/matrix) and [EOL policy](https://www.elastic.co/support/eol).

---

<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: [December 18, 2023, 12:11pm UTC](https://discuss.elastic.co/t/kibana-couldnt-connect-to-remote-elastic-search-cluster/347508/3 "2023-12-18T12:11:19Z")

</div>

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