# Cluster problem

**URL:** <https://discuss.elastic.co/t/cluster-problem/132433>\
**Category:** Elasticsearch\
**Created:** [May 18, 2018, 7:58am UTC](https://discuss.elastic.co/t/cluster-problem/132433 "2018-05-18T07:58:01Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![asalma](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/asalma/32/32199_2.png) [@asalma](https://discuss.elastic.co/u/asalma)\
**Post date:** [May 18, 2018, 7:58am UTC](https://discuss.elastic.co/t/cluster-problem/132433/1 "2018-05-18T07:58:01Z")

</div>

Hi,

I wanted to create an elasticsearch cluster, this is the changes I made :

cluster.name: network-logs  
node.name: network-1  
network.host: 172.16.250.29  
discovery.zen.ping.unicast.hosts: ["172.16.250.29"]

But the curl doesn't work :

```auto
# curl -XGET 'http://localhost:9200/_cluster/state?pretty'
curl: (7) Failed connect to localhost:9200; Connection refused
```

---

<div class="post-metadata">

**Author:** ![Bernt\_Rostad](https://avatars.discourse-cdn.com/v4/letter/b/3ab097/32.png) [@Bernt\_Rostad](https://discuss.elastic.co/u/Bernt_Rostad)\
**Post date:** [May 18, 2018, 8:02am UTC](https://discuss.elastic.co/t/cluster-problem/132433/2 "2018-05-18T08:02:57Z")

</div>

Given your host IP:

> [@asalma](#):
>
> network.host: 172.16.250.29

You should replace "localhost" with the IP address:

`curl -XGET 'http://172.16.250.29:9200/_cluster/state?pretty'`

---

<div class="post-metadata">

**Author:** ![asalma](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/asalma/32/32199_2.png) [@asalma](https://discuss.elastic.co/u/asalma)\
**Post date:** [May 18, 2018, 8:05am UTC](https://discuss.elastic.co/t/cluster-problem/132433/3 "2018-05-18T08:05:42Z")

</div>

> [@Bernt\_Rostad](#):
>
> curl -XGET '[http://172.16.250.29:9200/\_cluster/state?pretty](http://172.16.250.29:9200/_cluster/state?pretty)'

The curl works , but not kibana :

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/8/9/89949c3f12d81b76089ef84215e3c021a3fca194.png)

---

<div class="post-metadata">

**Author:** ![Bernt\_Rostad](https://avatars.discourse-cdn.com/v4/letter/b/3ab097/32.png) [@Bernt\_Rostad](https://discuss.elastic.co/u/Bernt_Rostad)\
**Post date:** [May 18, 2018, 8:25am UTC](https://discuss.elastic.co/t/cluster-problem/132433/4 "2018-05-18T08:25:23Z")

</div>

You need to configure the correct `elasticsearch.url` in kibana.yml and then restart Kibana to make it connect to the server by name or IP (and not by localhost).

---

<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 15, 2018, 8:25am UTC](https://discuss.elastic.co/t/cluster-problem/132433/5 "2018-06-15T08:25:26Z")

</div>

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