# Nodes Getting added automatically on Elasticsearch

**URL:** https://discuss.elastic.co/t/nodes-getting-added-automatically-on-elasticsearch/37958
**Category:** Elasticsearch
**Created:** [December 24, 2015, 8:35pm UTC](https://discuss.elastic.co/t/nodes-getting-added-automatically-on-elasticsearch/37958 "2015-12-24T20:35:58Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![abhishek\_ranjan](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/abhishek_ranjan/32/6835_2.png) [@abhishek\_ranjan](https://discuss.elastic.co/u/abhishek_ranjan)
#### Post date: [December 24, 2015, 8:35pm UTC](https://discuss.elastic.co/t/nodes-getting-added-automatically-on-elasticsearch/37958/1 "2015-12-24T20:35:58Z")

</div>

I have setup a elasticsearch cluster on AWS.I have setup three UBUNTU instances named : elasticsearch1, elasticsearch2, elasticsearch3

I have used the Elasticsearch Cloud AWS plugin for configuration and node discovery.

It should ideally show Three nodes but when i run :

`curl -XGET 'http://172.30.0.17:9200/_cluster/health?pretty=true'`  
I get :

```
{
  "cluster_name" : "LogstashCluster",
  "status" : "green",
  "timed_out" : false,
  "number_of_nodes" : 5,
  "number_of_data_nodes" : 5,
  "active_primary_shards" : 0,
  "active_shards" : 0,
  "relocating_shards" : 0,
  "initializing_shards" : 0,
  "unassigned_shards" : 0,
  "delayed_unassigned_shards" : 0,
  "number_of_pending_tasks" : 0,
  "number_of_in_flight_fetch" : 0,
  "task_max_waiting_in_queue_millis" : 0,
  "active_shards_percent_as_number" : 100.0
}

```

The Master Node which is elasticsearch1 has created 3 nodes :  
 ![](http://i.stack.imgur.com/qs0vf.png)

Why is this happening ?

---

<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: [December 25, 2015, 4:09am UTC](https://discuss.elastic.co/t/nodes-getting-added-automatically-on-elasticsearch/37958/2 "2015-12-25T04:09:32Z")

</div>

Probably because you didn't change the `cluster.name`! If you want unique clusters and they are all in the same security group, you will need to change this.

---

<div class="post-metadata">

### Author: ![abhishek\_ranjan](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/abhishek_ranjan/32/6835_2.png) [@abhishek\_ranjan](https://discuss.elastic.co/u/abhishek_ranjan)
#### Post date: [December 25, 2015, 11:22pm UTC](https://discuss.elastic.co/t/nodes-getting-added-automatically-on-elasticsearch/37958/3 "2015-12-25T23:22:45Z")

</div>

Works now , i had changed the cluster name a few times and it was causing the issue

---

<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: [July 5, 2017, 11:28pm UTC](https://discuss.elastic.co/t/nodes-getting-added-automatically-on-elasticsearch/37958/4 "2017-07-05T23:28:34Z")

</div>


