# How to get the list of nodes which left the cluster?

**URL:** https://discuss.elastic.co/t/how-to-get-the-list-of-nodes-which-left-the-cluster/157363
**Category:** Elasticsearch
**Created:** [November 19, 2018, 1:22pm UTC](https://discuss.elastic.co/t/how-to-get-the-list-of-nodes-which-left-the-cluster/157363 "2018-11-19T13:22:24Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![Saji\_George](https://avatars.discourse-cdn.com/v4/letter/s/87869e/32.png) [@Saji\_George](https://discuss.elastic.co/u/Saji_George)
#### Post date: [November 19, 2018, 1:22pm UTC](https://discuss.elastic.co/t/how-to-get-the-list-of-nodes-which-left-the-cluster/157363/1 "2018-11-19T13:22:24Z")

</div>

How to do we find the servers which are down and left the cluster?

I have 8 data nodes and 3 master nodes. Its very difficult to go through each server to find status of each server.

I can see the list of nodes which are part of cluster but how do we find the servers which are down?

Thanks

---

<div class="post-metadata">

### Author: ![DavidTurner](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/davidturner/32/22453_2.png) [@DavidTurner](https://discuss.elastic.co/u/DavidTurner)
#### Post date: [November 19, 2018, 1:52pm UTC](https://discuss.elastic.co/t/how-to-get-the-list-of-nodes-which-left-the-cluster/157363/2 "2018-11-19T13:52:34Z")

</div>

> [@Saji\_George](#):
>
> I can see the list of nodes which are part of cluster but how do we find the servers which are down?

There is no way for Elasticsearch to answer this question, because there is no way for Elasticsearch to tell the difference between a node that failed and a node that was deliberately removed from the cluster. You need to compare the list of nodes in the cluster to your own external list of the nodes that you expect to be in the cluster.

---

<div class="post-metadata">

### Author: ![Saji\_George](https://avatars.discourse-cdn.com/v4/letter/s/87869e/32.png) [@Saji\_George](https://discuss.elastic.co/u/Saji_George)
#### Post date: [November 19, 2018, 3:43pm UTC](https://discuss.elastic.co/t/how-to-get-the-list-of-nodes-which-left-the-cluster/157363/3 "2018-11-19T15:43:56Z")

</div>

If it is deliberately removed from cluster then it will be removed from config, right? Otherwise the cluster will always show status red.

Recently couple of servers were rebooted nd 2 nodes didn't start elasticsearch. I was cross checking entire 11 servers to find out which one is down. Think about if we have more servers.  
I believe if the servers are not removed from config then it should consider as part of cluster nd any servers not joined in cluster, it should report it.

---

<div class="post-metadata">

### Author: ![DavidTurner](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/davidturner/32/22453_2.png) [@DavidTurner](https://discuss.elastic.co/u/DavidTurner)
#### Post date: [November 19, 2018, 3:47pm UTC](https://discuss.elastic.co/t/how-to-get-the-list-of-nodes-which-left-the-cluster/157363/4 "2018-11-19T15:47:48Z")

</div>

> [@Saji\_George](#):
>
> If it is deliberately removed from cluster then it will be removed from config, right?

Which config? Perhaps you are thinking of `discovery.zen.ping.unicast.hosts`? This should only really contain the addresses of the master-eligible nodes and it's ok if it doesn't always contain them all.

---

<div class="post-metadata">

### Author: ![Saji\_George](https://avatars.discourse-cdn.com/v4/letter/s/87869e/32.png) [@Saji\_George](https://discuss.elastic.co/u/Saji_George)
#### Post date: [November 21, 2018, 6:41am UTC](https://discuss.elastic.co/t/how-to-get-the-list-of-nodes-which-left-the-cluster/157363/5 "2018-11-21T06:41:56Z")

</div>

Understand. Thanks for the explanation.

---

<div class="post-metadata">

### Author: ![mjunaidmuzammil](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mjunaidmuzammil/32/56910_2.png) [@mjunaidmuzammil](https://discuss.elastic.co/u/mjunaidmuzammil)
#### Post date: [November 21, 2018, 7:02am UTC](https://discuss.elastic.co/t/how-to-get-the-list-of-nodes-which-left-the-cluster/157363/6 "2018-11-21T07:02:27Z")

</div>

Based on my past experience, one quick way is to look at the Master logs. When a node leaves the cluster, one of the logs about node getting removed from cluster is printed inside the master logs. That can be helpful for you to determine which node has left the cluster.

---

<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: [December 19, 2018, 7:02am UTC](https://discuss.elastic.co/t/how-to-get-the-list-of-nodes-which-left-the-cluster/157363/7 "2018-12-19T07:02:27Z")

</div>

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