# Connect ES and KB

**URL:** https://discuss.elastic.co/t/connect-es-and-kb/133624
**Category:** Elasticsearch
**Created:** [May 29, 2018, 6:34am UTC](https://discuss.elastic.co/t/connect-es-and-kb/133624 "2018-05-29T06:34:31Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![Meghna\_Mane](https://avatars.discourse-cdn.com/v4/letter/m/b9e5f3/32.png) [@Meghna\_Mane](https://discuss.elastic.co/u/Meghna_Mane)
#### Post date: [May 29, 2018, 6:34am UTC](https://discuss.elastic.co/t/connect-es-and-kb/133624/1 "2018-05-29T06:34:31Z")

</div>

I have setup elasticsearch on one separate server and Logstatsh & Kibana (Both) on one server.  
1st server- ES  
2nd server- Logstatsh and kibana

I have added Elasticsearch.yml  
network.host: 0.0.0.0  
and  
kibana.yml  
server.host: "0.0.0.0"  
elasticsearch.url: "http://\<ES\_Public\_IP\>:9200"

and the problem is my kibana not conneting to elasticsearch  
How can I connet elsaticseach to kibana and logstatsh?

---

<div class="post-metadata">

### Author: ![roshni](https://avatars.discourse-cdn.com/v4/letter/r/ce7236/32.png) [@roshni](https://discuss.elastic.co/u/roshni)
#### Post date: [May 29, 2018, 6:57am UTC](https://discuss.elastic.co/t/connect-es-and-kb/133624/2 "2018-05-29T06:57:13Z")

</div>

Please check your networking information .  
You can get clarity here :

> **[How To Install Elasticsearch, Logstash, and Kibana (ELK Stack) on Ubuntu 14.04 |...](https://www.digitalocean.com/community/tutorials/how-to-install-elasticsearch-logstash-and-kibana-elk-stack-on-ubuntu-14-04)**
>
> In this tutorial, we will go over the installation of the Elasticsearch ELK Stack on Ubuntu 14.04—that is, Elasticsearch 2.2.x, Logstash 2.2.x, and Kibana 4.4.x. We will also show you how to configure it to gather and visualize the syslogs of your...

If issue still persists please share your logstash conf details too

---

<div class="post-metadata">

### Author: ![A\_B](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/a_b/32/17104_2.png) [@A\_B](https://discuss.elastic.co/u/A_B)
#### Post date: [May 29, 2018, 7:06am UTC](https://discuss.elastic.co/t/connect-es-and-kb/133624/3 "2018-05-29T07:06:38Z")

</div>

> [@Meghna\_Mane](#):
>
> http://\<ES\_Public\_IP\>:9200

What do you see if you put the above URL in your web browser?

Can you access it from the machine running Kibana? Try

```
curl http://<ES_Public_IP>:9200
nc -n -z <ES_Public_IP> 9200

```

---

<div class="post-metadata">

### Author: ![Meghna\_Mane](https://avatars.discourse-cdn.com/v4/letter/m/b9e5f3/32.png) [@Meghna\_Mane](https://discuss.elastic.co/u/Meghna_Mane)
#### Post date: [May 29, 2018, 8:18am UTC](https://discuss.elastic.co/t/connect-es-and-kb/133624/4 "2018-05-29T08:18:57Z")

</div>

No, I am not able to access ES url from browser and kibana server.

---

<div class="post-metadata">

### Author: ![A\_B](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/a_b/32/17104_2.png) [@A\_B](https://discuss.elastic.co/u/A_B)
#### Post date: [May 29, 2018, 9:20am UTC](https://discuss.elastic.co/t/connect-es-and-kb/133624/5 "2018-05-29T09:20:24Z")

</div>

The Kibana can not connect either...

Is ES definitely running? Can you connect to ES locally on the machine where ES runs? Try the same commands with both local and public IP.

---

<div class="post-metadata">

### Author: ![Meghna\_Mane](https://avatars.discourse-cdn.com/v4/letter/m/b9e5f3/32.png) [@Meghna\_Mane](https://discuss.elastic.co/u/Meghna_Mane)
#### Post date: [May 29, 2018, 10:28am UTC](https://discuss.elastic.co/t/connect-es-and-kb/133624/6 "2018-05-29T10:28:42Z")

</div>

Yes elasticsearch service is runing.

```
#service elasticsearch status

```

● elasticsearch.service - Elasticsearch  
Loaded: loaded (/usr/lib/systemd/system/elasticsearch.service; disabled; vendor preset: enabled)  
Active: **active (running)**  
Docs: [http://www.elastic.co](http://www.elastic.co)  
Main PID: 15133 (java)  
CGroup: /system.slice/elasticsearch.service  
└─15133 /usr/bin/java -Xms1g -Xmx1g -XX:+UseConcMarkSweepGC -XX:CMSInitiatingOccupancyFraction=75 -XX:+UseCMSInitiatingOccupancyOnly -XX:+AlwaysPreTouch -Xss1m -Djava.awt.headless=true -Dfile.e

**From ES server**  
**#curl -X GET "ES\_IP:9200/"**  
{  
"name" : "qjnBFw1",  
"cluster\_name" : "elasticsearch",  
"cluster\_uuid" : "3xWjQ4qyR6OqVlGbg0t70Q",  
"version" : {  
"number" : "6.2.4",  
"build\_hash" : "ccec39f",  
"build\_date" : "2018-04-12T20:37:28.497551Z",  
"build\_snapshot" : false,  
"lucene\_version" : "7.2.1",  
"minimum\_wire\_compatibility\_version" : "5.6.0",  
"minimum\_index\_compatibility\_version" : "5.0.0"  
},  
"tagline" : "You Know, for Search"  
}

```
#netstat -antp | grep 9200 
tcp 0 0 0.0.0.0:9200 0.0.0.0:* LISTEN 15133/java
```

---

<div class="post-metadata">

### Author: ![A\_B](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/a_b/32/17104_2.png) [@A\_B](https://discuss.elastic.co/u/A_B)
#### Post date: [May 29, 2018, 11:35am UTC](https://discuss.elastic.co/t/connect-es-and-kb/133624/7 "2018-05-29T11:35:33Z")

</div>

Then it's a network issue, firewall blocking ports or something like that.

---

<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: [June 26, 2018, 11:35am UTC](https://discuss.elastic.co/t/connect-es-and-kb/133624/8 "2018-06-26T11:35:38Z")

</div>

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