# Elastic Cluster

**URL:** <https://discuss.elastic.co/t/elastic-cluster/101774>\
**Category:** Elasticsearch\
**Created:** [September 26, 2017, 1:50am UTC](https://discuss.elastic.co/t/elastic-cluster/101774 "2017-09-26T01:50:29Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Natalia\_Queiroz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/natalia_queiroz/32/22504_2.png) [@Natalia\_Queiroz](https://discuss.elastic.co/u/Natalia_Queiroz)\
**Post date:** [September 26, 2017, 1:50am UTC](https://discuss.elastic.co/t/elastic-cluster/101774/1 "2017-09-26T01:50:29Z")

</div>

Hi group,

I have the follow cenario: 1 node master, 2 data nodes and 1 client node (kibana+logstash) and a few questions.

Regarding the elasticsearch.yml configuration, should I need to configure an initial list of nodes that will be contacted to discover and form the cluster?

discovery.zen.ping.unicast.hosts: ["master-01", "datanode-01", "datanode-02"]

Regarding the logstash.conf file what IP do I put in Logstash's output's elasticsearch configuration? master-01 ip address?

output {  
elasticsearch { ? }  
}

Thanks,  
Natalia

---

<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:** [September 26, 2017, 1:52am UTC](https://discuss.elastic.co/t/elastic-cluster/101774/2 "2017-09-26T01:52:34Z")

</div>

> [@Natalia\_Queiroz](#):
>
> 1 node master, 2 data nodes

That's not ideal, see [Important Configuration Changes | Elasticsearch: The Definitive Guide [2.x] | Elastic](https://www.elastic.co/guide/en/elasticsearch/guide/2.x/important-configuration-changes.html#_minimum_master_nodes)

> [@Natalia\_Queiroz](#):
>
> Regarding the elasticsearch.yml configuration, should I need to configure an initial list of nodes that will be contacted to discover and form the cluster

Yep!

> [@Natalia\_Queiroz](#):
>
> Regarding the logstash.conf file what IP do I put in Logstash's output's elasticsearch configuration? master-01 ip address

Ideally never the master nodes.

---

<div class="post-metadata">

**Author:** ![mujtabahussain](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mujtabahussain/32/17514_2.png) [@mujtabahussain](https://discuss.elastic.co/u/mujtabahussain)\
**Post date:** [September 26, 2017, 5:49am UTC](https://discuss.elastic.co/t/elastic-cluster/101774/3 "2017-09-26T05:49:19Z")

</div>

> [@Natalia\_Queiroz](#):
>
> discovery.zen.ping.unicast.hosts: ["master-01", "datanode-01", "datanode-02"]

Out of curiosity, where are you hosting this setup?

---

<div class="post-metadata">

**Author:** ![poojagupta](https://avatars.discourse-cdn.com/v4/letter/p/5daacb/32.png) [@poojagupta](https://discuss.elastic.co/u/poojagupta)\
**Post date:** [September 26, 2017, 6:34am UTC](https://discuss.elastic.co/t/elastic-cluster/101774/4 "2017-09-26T06:34:34Z")

</div>

> [@Natalia\_Queiroz](#):
>
> Regarding the elasticsearch.yml configuration, should I need to configure an initial list of nodes that will be contacted to discover and form the cluster?

you should make a cluster including all master, data and client nodes that is helpful for load balancing the data also. for this you have to mention all nodes hostname in discovery parameter.

> [@Natalia\_Queiroz](#):
>
> Regarding the logstash.conf file what IP do I put in Logstash's output's elasticsearch configuration? master-01 ip address?
> 
> output {  
> elasticsearch { ? }

As you told logstash is configured on client node you can mention the IP of elasticsearch as per your configuration ex: localhost if you configured elasticsearch on the same machine or cluster IP from which you are accessing the Elasticsearch cluster. also you can mention the data node ip

process wil be as whenever any logs are coming it will go to client node and due to elasticsearch all data will be reflected in the cluster and request will be followed.

---

<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:** [October 24, 2017, 6:34am UTC](https://discuss.elastic.co/t/elastic-cluster/101774/5 "2017-10-24T06:34:43Z")

</div>

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