Access to elasticsearch host from kibana in other host

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 :

kibana@kibana:~$ curl -XGET
curl: (52) Empty reply from server


is it possible that TLS/SSL is enabled?


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

By sending a https:// request via curl

you mean like this (curl -XGET

i try but the response this error :

curl -XGET
curl: (60) SSL certificate problem: self signed certificate in certificate chain
More details here:

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.

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 for some more guidance around this, if you are using Elastic Stack 8.

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

curl -v -k

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.

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

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