# Access to elasticsearch host from kibana in other host

**URL:** <https://discuss.elastic.co/t/access-to-elasticsearch-host-from-kibana-in-other-host/303353>\
**Category:** Elasticsearch\
**Created:** [April 27, 2022, 7:52am UTC](https://discuss.elastic.co/t/access-to-elasticsearch-host-from-kibana-in-other-host/303353 "2022-04-27T07:52:01Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Firas\_Bougrine](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/firas_bougrine/32/103349_2.png) [@Firas\_Bougrine](https://discuss.elastic.co/u/Firas_Bougrine)\
**Post date:** [April 27, 2022, 7:52am UTC](https://discuss.elastic.co/t/access-to-elasticsearch-host-from-kibana-in-other-host/303353/1 "2022-04-27T07:52:01Z")

</div>

hi I can't access to Elasticsearch host from kibana host , i tested this command and it not work  
this cmd : `curl -XGET es-ip-or-hostname:9200/` ,  
the response of the command :

```auto
kibana@kibana:~$ curl -XGET 172.19.14.67:9200/
curl: (52) Empty reply from server

```

---

<div class="post-metadata">

**Author:** ![spinscale](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/spinscale/32/25011_2.png) [@spinscale](https://discuss.elastic.co/u/spinscale)\
**Post date:** [April 27, 2022, 8:12am UTC](https://discuss.elastic.co/t/access-to-elasticsearch-host-from-kibana-in-other-host/303353/2 "2022-04-27T08:12:40Z")

</div>

Hey,

is it possible that TLS/SSL is enabled?

--Alex

---

<div class="post-metadata">

**Author:** ![Firas\_Bougrine](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/firas_bougrine/32/103349_2.png) [@Firas\_Bougrine](https://discuss.elastic.co/u/Firas_Bougrine)\
**Post date:** [April 27, 2022, 8:30am UTC](https://discuss.elastic.co/t/access-to-elasticsearch-host-from-kibana-in-other-host/303353/3 "2022-04-27T08:30:33Z")

</div>

HOW TO CHECK if it is enabled ?  
and how to enable it?

---

<div class="post-metadata">

**Author:** ![spinscale](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/spinscale/32/25011_2.png) [@spinscale](https://discuss.elastic.co/u/spinscale)\
**Post date:** [April 27, 2022, 8:31am UTC](https://discuss.elastic.co/t/access-to-elasticsearch-host-from-kibana-in-other-host/303353/4 "2022-04-27T08:31:15Z")

</div>

By sending a `https://` request via curl

---

<div class="post-metadata">

**Author:** ![Firas\_Bougrine](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/firas_bougrine/32/103349_2.png) [@Firas\_Bougrine](https://discuss.elastic.co/u/Firas_Bougrine)\
**Post date:** [April 27, 2022, 8:38am UTC](https://discuss.elastic.co/t/access-to-elasticsearch-host-from-kibana-in-other-host/303353/5 "2022-04-27T08:38:23Z")

</div>

you mean like this (curl -XGET [https://172.19.14.67:9200/](https://172.19.14.67:9200/)

---

<div class="post-metadata">

**Author:** ![Firas\_Bougrine](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/firas_bougrine/32/103349_2.png) [@Firas\_Bougrine](https://discuss.elastic.co/u/Firas_Bougrine)\
**Post date:** [April 27, 2022, 8:40am UTC](https://discuss.elastic.co/t/access-to-elasticsearch-host-from-kibana-in-other-host/303353/6 "2022-04-27T08:40:01Z")

</div>

i try but the response this error :

```auto
curl -XGET https://172.19.14.67:9200/
curl: (60) SSL certificate problem: self signed certificate in certificate chain
More details here: https://curl.haxx.se/docs/sslcerts.html

curl failed to verify the legitimacy of the server and therefore could not
establish a secure connection to it. To learn more about this situation and
how to fix it, please visit the web page mentioned above.

```

---

<div class="post-metadata">

**Author:** ![spinscale](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/spinscale/32/25011_2.png) [@spinscale](https://discuss.elastic.co/u/spinscale)\
**Post date:** [April 27, 2022, 2:17pm UTC](https://discuss.elastic.co/t/access-to-elasticsearch-host-from-kibana-in-other-host/303353/7 "2022-04-27T14:17:57Z")

</div>

There is an explanation and a link. Have you taken a look at that?

This means, that there is actually a TLS connection made and your Elasticsearch cluster is using a encrpytion to communicate. This also means you need to configure Kibana to make sure it also uses encrypted connections to Elasticsearch.

See [Set up basic security for the Elastic Stack | Elasticsearch Guide [8.1] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/current/security-basic-setup.html#security-basic-setup) for some more guidance around this, if you are using Elastic Stack 8.

---

<div class="post-metadata">

**Author:** ![bshaw](https://avatars.discourse-cdn.com/v4/letter/b/c2a13f/32.png) [@bshaw](https://discuss.elastic.co/u/bshaw)\
**Post date:** [April 27, 2022, 5:56pm UTC](https://discuss.elastic.co/t/access-to-elasticsearch-host-from-kibana-in-other-host/303353/8 "2022-04-27T17:56:42Z")

</div>

To further verify that you are correctly connecting to your Elasticsearch instance you can try:

> curl -v -k [https://172.19.14.67:9200/](https://172.19.14.67:9200/)

The "-v" will display the headers coming back from the server and the "-k" will make curl ignore the self self signed certificate error so the page can actually be loaded.

---

<div class="post-metadata">

**Author:** ![Firas\_Bougrine](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/firas_bougrine/32/103349_2.png) [@Firas\_Bougrine](https://discuss.elastic.co/u/Firas_Bougrine)\
**Post date:** [April 28, 2022, 7:43am UTC](https://discuss.elastic.co/t/access-to-elasticsearch-host-from-kibana-in-other-host/303353/9 "2022-04-28T07:43:09Z")

</div>

I have other question please , my lab is( kibana and Elasticsearch installed in different virtuel machines ) i can access to kibana interface from http and now i want to access it from https did you help me

---

<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:** [May 26, 2022, 7:44am UTC](https://discuss.elastic.co/t/access-to-elasticsearch-host-from-kibana-in-other-host/303353/10 "2022-05-26T07:44:02Z")

</div>

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