# Kibana : communication with cluster elasticsearch

**URL:** <https://discuss.elastic.co/t/kibana-communication-with-cluster-elasticsearch/308754>\
**Category:** Kibana\
**Tags:** elastic-stack-security\
**Created:** [July 3, 2022, 5:26pm UTC](https://discuss.elastic.co/t/kibana-communication-with-cluster-elasticsearch/308754 "2022-07-03T17:26:00Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![emmanuel\_stevens\_LED](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/emmanuel_stevens_led/32/107869_2.png) [@emmanuel\_stevens\_LED](https://discuss.elastic.co/u/emmanuel_stevens_LED)\
**Post date:** [July 3, 2022, 5:26pm UTC](https://discuss.elastic.co/t/kibana-communication-with-cluster-elasticsearch/308754/1 "2022-07-03T17:26:00Z")

</div>

Hello,  
I am brand new to ELK, i try to make a test environnement at home.

I just set up a elastic cluster, it works fine. All my three noeuds connetcts to each other.  
I installed a kibana server, and i follow the guide  
[here](https://www.elastic.co/guide/en/elasticsearch/reference/8.0/security-basic-setup-https.html#encrypt-http-communication)

it provides 3 http.p12 files for my 3 noeuds and 1 elasticsearch-ca.pem for my kibana.

- For elastic noeuds

i upload the http.p12 files in the /etc/elasticsearch/certs/ directory on each elastic noeuds and i make sure that the system recognize the password with that command : /usr/share/elasticsearch/bin/elasticsearch-keystore add pack.security.http.ssl.keystore.secure\_password

- For kibana

i upload the elasticsearch-ca.pem file in the /etc/kibana/certs/ directory , and mi kibana.yml file look like this

```auto
**server.host: "192.168.208.140"**
**elasticsearch.hosts: ["https://192.168.208.135:9200", "https://192.168.208.136:9200", "https://192.168.208.134:9200"]**
**elasticsearch.ssl.certificateAuthorities: ["/etc/kibana/certs/elasticsearch-ca.pem"]**
 **# Enables you to specify a file where Kibana stores log output.**
 **logging:**
 **appenders:**
 **file:**
 **type: file**
 **fileName: /var/log/kibana/kibana.log**
 **layout:**
 **type: json**
 **root:**
 **appenders:**
 **- default**
 **- file**
 **pid.file: /run/kibana/kibana.pid**

```

I open 9200 port on all noeuds

After all this when i restart all service (kibana and elastic) on my kibana server i get this error 🙂  
_{"ecs":{"version":"8.0.0"},"@timestamp":"2022-07-03T13:00:12.450-04:00","message":"Unable to retrieve version information from Elasticsearch nodes. security\_exception: [security\_exception] Reason: missing authentication credentials for REST request [/\_nodes?filter\_path=nodes._.version%2Cnodes._.http.publish\_address%2Cnodes._.ip]","log":{"level":"ERROR","logger":"elasticsearch-service"},"process":{"pid":1444},"trace":{"id":"62c3496fbe55e4efdb448ad235346e06"},"transaction":{"id":"212a1e6295a10e89"}}\*

_][ERROR][elasticsearch-service] Unable to retrieve version information from Elasticsearch nodes. security\_exception: [security\_exception] Reason: missing authentication credentials for REST request [/\_nodes?filter\_path=nodes._.version%2Cnodes._.http.publish\_address%2Cnodes._.ip]\*

I am stuck with that

---

<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 3, 2022, 11:05pm UTC](https://discuss.elastic.co/t/kibana-communication-with-cluster-elasticsearch/308754/2 "2022-07-03T23:05:28Z")

</div>

Welcome to our community! 😃

Can you curl to Elasticsearch without any errors?  
What does your kibana.yml look like?

---

<div class="post-metadata">

**Author:** ![emmanuel\_stevens\_LED](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/emmanuel_stevens_led/32/107869_2.png) [@emmanuel\_stevens\_LED](https://discuss.elastic.co/u/emmanuel_stevens_LED)\
**Post date:** [July 12, 2022, 5:17pm UTC](https://discuss.elastic.co/t/kibana-communication-with-cluster-elasticsearch/308754/3 "2022-07-12T17:17:33Z")

</div>

Thank you for you answer warlcom, I found the issues. I had to put the kibana credentials in the kibana.yml

Now it works find, but i have issue connecting logstash to elasticsearch

---

<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 9, 2022, 5:18pm UTC](https://discuss.elastic.co/t/kibana-communication-with-cluster-elasticsearch/308754/4 "2022-08-09T17:18:27Z")

</div>

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