# Kibana cannot connect to elasticsearch cluster

**URL:** https://discuss.elastic.co/t/kibana-cannot-connect-to-elasticsearch-cluster/152262
**Category:** Kibana
**Created:** [October 12, 2018, 2:50pm UTC](https://discuss.elastic.co/t/kibana-cannot-connect-to-elasticsearch-cluster/152262 "2018-10-12T14:50:14Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Ryne\_Keel](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ryne_keel/32/42827_2.png) [@Ryne\_Keel](https://discuss.elastic.co/u/Ryne_Keel)
#### Post date: [October 12, 2018, 2:50pm UTC](https://discuss.elastic.co/t/kibana-cannot-connect-to-elasticsearch-cluster/152262/1 "2018-10-12T14:50:14Z")

</div>

Cannot connect to the Elasticsearch cluster currently configured for Kibana.

Refer to the Kibana logs for more details and refresh to try again.

When I connect to kibana I get the above message ^

elastic.yml:  
cluster.name: bnisia-1  
node.name: node-1  
#node.attr.rack: r1  
path.data: /var/lib/elasticsearch  
path.logs: /var/log/elasticsearch  
#bootstrap.memory\_lock: true  
#network.host: localhost  
#http.port: 9200  
#discovery.zen.ping.unicast.hosts: ["host1", "host2"]  
#discovery.zen.minimum\_master\_nodes:  
#gateway.recover\_after\_nodes: 3  
#action.destructive\_requires\_name: true

kibana.yml:  
server.port: 5601  
server.host: "192.168.x.x"  
elasticsearch.url: "[http://localhost:9200](http://localhost:9200)"  
kibana.index: ".kibana"

---

<div class="post-metadata">

### Author: ![Ryne\_Keel](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ryne_keel/32/42827_2.png) [@Ryne\_Keel](https://discuss.elastic.co/u/Ryne_Keel)
#### Post date: [October 12, 2018, 5:32pm UTC](https://discuss.elastic.co/t/kibana-cannot-connect-to-elasticsearch-cluster/152262/2 "2018-10-12T17:32:02Z")

</div>

This can be closed.

It turns out that if you forget to allow the traffic back out of iptables that it doesn't matter if you allow the input =o

---

<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: [November 9, 2018, 5:32pm UTC](https://discuss.elastic.co/t/kibana-cannot-connect-to-elasticsearch-cluster/152262/3 "2018-11-09T17:32:03Z")

</div>

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