# Howto connect Kibana 8 with ES8?

**URL:** <https://discuss.elastic.co/t/howto-connect-kibana-8-with-es8/303717>\
**Category:** Elasticsearch\
**Created:** [May 2, 2022, 7:59am UTC](https://discuss.elastic.co/t/howto-connect-kibana-8-with-es8/303717 "2022-05-02T07:59:55Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![McLaine](https://avatars.discourse-cdn.com/v4/letter/m/5f8ce5/32.png) [@McLaine](https://discuss.elastic.co/u/McLaine)\
**Post date:** [May 2, 2022, 7:59am UTC](https://discuss.elastic.co/t/howto-connect-kibana-8-with-es8/303717/1 "2022-05-02T07:59:55Z")

</div>

Hello!  
Es is running with:  
128 [::ffff:127.0.0.1]:9200 _:_ users:(("java",pid=43127,fd=463))  
LISTEN 0 128 [::1]:9200 [::]:\* users:(("java",pid=43127,fd=462))  
LISTEN 0 128 [::ffff:14.168.178.75]:9300 _:_ users:(("java",pid=43127,fd=459))

Is this OK? **Do I connect Kibana to port 9200 oder 9300?**

curl -k -XGET [https://127.0.0.1:9200/\_cluster/health?pretty=true](https://127.0.0.1:9200/_cluster/health?pretty=true)  
{  
"error" : {  
"root\_cause" : [  
{  
"type" : "security\_exception",  
"reason" : "missing authentication credentials for REST request [/\_cluster/health?pretty=true]",  
"header" : {  
"WWW-Authenticate" : [  
"Basic realm="security" charset="UTF-8"",  
"Bearer realm="security"",  
"ApiKey"  
]  
}  
}  
],  
"type" : "security\_exception",  
"reason" : "missing authentication credentials for REST request [/\_cluster/health?pretty=true]",  
"header" : {  
"WWW-Authenticate" : [  
"Basic realm="security" charset="UTF-8"",  
"Bearer realm="security"",  
"ApiKey"  
]  
}  
},  
"status" : 401  
}

Which user?

Best  
Edwin

---

<div class="post-metadata">

**Author:** ![McLaine](https://avatars.discourse-cdn.com/v4/letter/m/5f8ce5/32.png) [@McLaine](https://discuss.elastic.co/u/McLaine)\
**Post date:** [May 2, 2022, 8:19am UTC](https://discuss.elastic.co/t/howto-connect-kibana-8-with-es8/303717/2 "2022-05-02T08:19:23Z")

</div>

now it works with -u elastic:password: status is green  
(127.0.0.1:9200) with https

but I am getting: {"error":"no handler found for uri [/\_xpack/security/\_authenticate?pretty.]

Now I know, that kibana has to connect with port 9200, but only port 127.0.0.1 is listening ...

network.host: has no effect with ES 8.x?

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [May 2, 2022, 8:50am UTC](https://discuss.elastic.co/t/howto-connect-kibana-8-with-es8/303717/3 "2022-05-02T08:50:14Z")

</div>

What is the output of:

```
curl -u elastic:password https://localhost:9200/
```

---

<div class="post-metadata">

**Author:** ![McLaine](https://avatars.discourse-cdn.com/v4/letter/m/5f8ce5/32.png) [@McLaine](https://discuss.elastic.co/u/McLaine)\
**Post date:** [May 2, 2022, 8:52am UTC](https://discuss.elastic.co/t/howto-connect-kibana-8-with-es8/303717/4 "2022-05-02T08:52:48Z")

</div>

> [@dadoonet](#):
>
> `curl -u elastic:password https://localhost:9200/`

{  
"name" : "host1",  
"cluster\_name" : "cluster-one",  
"cluster\_uuid" : "qeIDf5-rTKeG9NMNFX-Raw",  
"version" : {  
"number" : "8.0.0",  
"build\_flavor" : "default",  
"build\_type" : "rpm",  
"build\_hash" : "1b6a7ece17463df5ff54a3e135889aa1161",  
"build\_date" : "2022-02-03T16:47:57.507843096Z",  
"build\_snapshot" : false,  
"lucene\_version" : "9.0.0",  
"minimum\_wire\_compatibility\_version" : "7.17.0",  
"minimum\_index\_compatibility\_version" : "7.0.0"  
},  
"tagline" : "You Know, for Search"  
}

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [May 2, 2022, 9:04am UTC](https://discuss.elastic.co/t/howto-connect-kibana-8-with-es8/303717/5 "2022-05-02T09:04:05Z")

</div>

Are you able to run the same/similar command from the Kibana machine?  
Also please use the latest 8.1.3.

---

<div class="post-metadata">

**Author:** ![McLaine](https://avatars.discourse-cdn.com/v4/letter/m/5f8ce5/32.png) [@McLaine](https://discuss.elastic.co/u/McLaine)\
**Post date:** [May 2, 2022, 9:21am UTC](https://discuss.elastic.co/t/howto-connect-kibana-8-with-es8/303717/6 "2022-05-02T09:21:38Z")

</div>

no, because the ES host is only listening on localhost.  
127.0.0.1:9200  
kibana is running on a different host

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [May 2, 2022, 9:29am UTC](https://discuss.elastic.co/t/howto-connect-kibana-8-with-es8/303717/7 "2022-05-02T09:29:12Z")

</div>

Did you set `network.host`? What does your `elasticsearch.yml` file look like?

Please format your code, logs or configuration files using `</>` icon as explained in [this guide](https://discuss.elastic.co/t/about-the-elasticsearch-category/21) and not the citation button. It will make your post more readable.

Or use markdown style like:

````
```
CODE
```

````

This is the icon to use if you are not using markdown format:

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/7/e/7e6e239431ec2d71cbf1beef741f2e93e7cc762c.jpg)

There's a live preview panel for exactly this reasons.

Lots of people read these forums, and many of them will simply skip over a post that is difficult to read, because it's just too large an investment of their time to try and follow a wall of badly formatted text.  
If your goal is to get an answer to your questions, it's in your interest to make it as easy to read and understand as possible.

---

<div class="post-metadata">

**Author:** ![McLaine](https://avatars.discourse-cdn.com/v4/letter/m/5f8ce5/32.png) [@McLaine](https://discuss.elastic.co/u/McLaine)\
**Post date:** [May 2, 2022, 9:41am UTC](https://discuss.elastic.co/t/howto-connect-kibana-8-with-es8/303717/8 "2022-05-02T09:41:09Z")

</div>

Yes, I set network.host

But the host is not listening on this IP, only 127.0.0.1

```auto
# ---------------------------------- Network -----------------------------------

# By default Elasticsearch is only accessible on localhost. Set a different
# address here to expose this node on the network:

network.host: 14.168.178.75 
#

http.port: 9200

```

[o.e.h.AbstractHttpServerTransport]: publish\_address {127.0.0.1:9200}, bound\_addresses {[::1]:9200}, {127.0.0.1:9200}

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [May 2, 2022, 9:59am UTC](https://discuss.elastic.co/t/howto-connect-kibana-8-with-es8/303717/9 "2022-05-02T09:59:43Z")

</div>

Did you restart the node?  
Is that the full `elasticsearch.yml` file?

---

<div class="post-metadata">

**Author:** ![McLaine](https://avatars.discourse-cdn.com/v4/letter/m/5f8ce5/32.png) [@McLaine](https://discuss.elastic.co/u/McLaine)\
**Post date:** [May 2, 2022, 10:13am UTC](https://discuss.elastic.co/t/howto-connect-kibana-8-with-es8/303717/10 "2022-05-02T10:13:33Z")

</div>

I had no changes to do. The rest is standard ... node name, path etc.  
(my oldest es is version Elasticsearch-2.4.2) this one is listening to the public address)

the old one looks better:

```auto
tcp 0 0 49.42.145.147:9200 :::* LISTEN 1385/java

```

```auto
network.host: 14.168.178.75 seems to be not working with ES 8.0

```

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [May 2, 2022, 10:21am UTC](https://discuss.elastic.co/t/howto-connect-kibana-8-with-es8/303717/11 "2022-05-02T10:21:30Z")

</div>

Could you restart the Elasticsearch node?  
And share the **full** logs here?

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [May 2, 2022, 5:23pm UTC](https://discuss.elastic.co/t/howto-connect-kibana-8-with-es8/303717/14 "2022-05-02T17:23:55Z")

</div>

Are you sure you modified the right `elasticsearch.yml` file?

---

<div class="post-metadata">

**Author:** ![McLaine](https://avatars.discourse-cdn.com/v4/letter/m/5f8ce5/32.png) [@McLaine](https://discuss.elastic.co/u/McLaine)\
**Post date:** [May 3, 2022, 7:30am UTC](https://discuss.elastic.co/t/howto-connect-kibana-8-with-es8/303717/15 "2022-05-03T07:30:16Z")

</div>

now port 9200 is accessible

---

<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 31, 2022, 7:30am UTC](https://discuss.elastic.co/t/howto-connect-kibana-8-with-es8/303717/16 "2022-05-31T07:30:55Z")

</div>

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