# Unique node id for elasticsearch node

**URL:** https://discuss.elastic.co/t/unique-node-id-for-elasticsearch-node/23682
**Category:** Elasticsearch
**Created:** [May 25, 2015, 11:40am UTC](https://discuss.elastic.co/t/unique-node-id-for-elasticsearch-node/23682 "2015-05-25T11:40:17Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Debayan\_Banerjee](https://avatars.discourse-cdn.com/v4/letter/d/58f4c7/32.png) [@Debayan\_Banerjee](https://discuss.elastic.co/u/Debayan_Banerjee)
#### Post date: [May 25, 2015, 11:40am UTC](https://discuss.elastic.co/t/unique-node-id-for-elasticsearch-node/23682/1 "2015-05-25T11:40:17Z")

</div>

Hi,

I want to know the node unique ID for an elasticsearch node via an API.  
There is  
[https://www.elastic.co/guide/en/elasticsearch/reference/1.3/cat-nodes.html](https://www.elastic.co/guide/en/elasticsearch/reference/1.3/cat-nodes.html)  
but it only shows a four letter abbreviated ID. I need the full ID so I can  
parse the output of  
[https://www.elastic.co/guide/en/elasticsearch/reference/1.5/cluster-nodes-stats.html](https://www.elastic.co/guide/en/elasticsearch/reference/1.5/cluster-nodes-stats.html)  
which requires prior knowledge of node ID.

Please help.

--

Debayan Banerjee  
devOps engineer  
+91 8800846550

## -- Please update your bookmarks! We have moved to [https://discuss.elastic.co/](https://discuss.elastic.co/)

You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CAOvawCtU3-%3DdY4a%3DmFJuDERRPRX0S8HL0BD7qVYbW6JRFaLGsg%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAOvawCtU3-%3DdY4a%3DmFJuDERRPRX0S8HL0BD7qVYbW6JRFaLGsg%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

### Author: ![johtani](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/johtani/32/44956_2.png) [@johtani](https://discuss.elastic.co/u/johtani)
#### Post date: [May 26, 2015, 2:47am UTC](https://discuss.elastic.co/t/unique-node-id-for-elasticsearch-node/23682/2 "2015-05-26T02:47:54Z")

</div>

Hi,  
You can use `full_id` parameter with \_cat API.

"GET \_cat/nodes?v&full\_id=true&h=id"

PS - We're moving to [https://discuss.elastic.co/](https://discuss.elastic.co/), please join us there for  
any future discussions!

2015-05-25 20:40 GMT+09:00 Debayan Banerjee [debayan.banerjee@paytm.com](mailto:debayan.banerjee@paytm.com):

> Hi,
> 
> I want to know the node unique ID for an elasticsearch node via an API.  
> There is  
> [cat nodes | Elasticsearch Guide [1.3] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/1.3/cat-nodes.html)  
> but it only shows a four letter abbreviated ID. I need the full ID so I can  
> parse the output of  
> [Nodes Stats | Elasticsearch Guide [1.5] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/1.5/cluster-nodes-stats.html)  
> which requires prior knowledge of node ID.
> 
> Please help.
> 
> --
> 
> Debayan Banerjee  
> devOps engineer  
> +91 8800846550
> 
> ## -- Please update your bookmarks! We have moved to [https://discuss.elastic.co/](https://discuss.elastic.co/)
> 
> You received this message because you are subscribed to the Google Groups  
> "elasticsearch" group.  
> To unsubscribe from this group and stop receiving emails from it, send an  
> email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> To view this discussion on the web visit  
> [https://groups.google.com/d/msgid/elasticsearch/CAOvawCtU3-%3DdY4a%3DmFJuDERRPRX0S8HL0BD7qVYbW6JRFaLGsg%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAOvawCtU3-%3DdY4a%3DmFJuDERRPRX0S8HL0BD7qVYbW6JRFaLGsg%40mail.gmail.com)  
> [https://groups.google.com/d/msgid/elasticsearch/CAOvawCtU3-%3DdY4a%3DmFJuDERRPRX0S8HL0BD7qVYbW6JRFaLGsg%40mail.gmail.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/CAOvawCtU3-%3DdY4a%3DmFJuDERRPRX0S8HL0BD7qVYbW6JRFaLGsg%40mail.gmail.com?utm_medium=email&utm_source=footer)  
> .  
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

## --

Jun Ohtani  
blog : [http://blog.johtani.info](http://blog.johtani.info)

## -- Please update your bookmarks! We have moved to [https://discuss.elastic.co/](https://discuss.elastic.co/)

You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CAPW8A5xiZn\_HR3wwMJ84gigEYf5aXv2kzG8CAZiLRHU4%3Dj0kWw%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAPW8A5xiZn_HR3wwMJ84gigEYf5aXv2kzG8CAZiLRHU4%3Dj0kWw%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

### Author: ![Debayan\_Banerjee](https://avatars.discourse-cdn.com/v4/letter/d/58f4c7/32.png) [@Debayan\_Banerjee](https://discuss.elastic.co/u/Debayan_Banerjee)
#### Post date: [May 26, 2015, 5:40am UTC](https://discuss.elastic.co/t/unique-node-id-for-elasticsearch-node/23682/3 "2015-05-26T05:40:03Z")

</div>

Thanks a lot!

On Tue, May 26, 2015 at 8:17 AM, Jun Ohtani [johtani@gmail.com](mailto:johtani@gmail.com) wrote:

> Hi,  
> You can use `full_id` parameter with \_cat API.
> 
> "GET \_cat/nodes?v&full\_id=true&h=id"
> 
> PS - We're moving to [https://discuss.elastic.co/](https://discuss.elastic.co/), please join us there  
> for any future discussions!
> 
> 2015-05-25 20:40 GMT+09:00 Debayan Banerjee [debayan.banerjee@paytm.com](mailto:debayan.banerjee@paytm.com):
> 
> > Hi,
> > 
> > I want to know the node unique ID for an elasticsearch node via an API.  
> > There is  
> > [cat nodes | Elasticsearch Guide [1.3] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/1.3/cat-nodes.html)  
> > but it only shows a four letter abbreviated ID. I need the full ID so I can  
> > parse the output of  
> > [Nodes Stats | Elasticsearch Guide [1.5] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/1.5/cluster-nodes-stats.html)  
> > which requires prior knowledge of node ID.
> > 
> > Please help.
> > 
> > --
> > 
> > Debayan Banerjee  
> > devOps engineer  
> > +91 8800846550
> > 
> > ## -- Please update your bookmarks! We have moved to [https://discuss.elastic.co/](https://discuss.elastic.co/)
> > 
> > You received this message because you are subscribed to the Google Groups  
> > "elasticsearch" group.  
> > To unsubscribe from this group and stop receiving emails from it, send an  
> > email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> > To view this discussion on the web visit  
> > [https://groups.google.com/d/msgid/elasticsearch/CAOvawCtU3-%3DdY4a%3DmFJuDERRPRX0S8HL0BD7qVYbW6JRFaLGsg%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAOvawCtU3-%3DdY4a%3DmFJuDERRPRX0S8HL0BD7qVYbW6JRFaLGsg%40mail.gmail.com)  
> > [https://groups.google.com/d/msgid/elasticsearch/CAOvawCtU3-%3DdY4a%3DmFJuDERRPRX0S8HL0BD7qVYbW6JRFaLGsg%40mail.gmail.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/CAOvawCtU3-%3DdY4a%3DmFJuDERRPRX0S8HL0BD7qVYbW6JRFaLGsg%40mail.gmail.com?utm_medium=email&utm_source=footer)  
> > .  
> > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
> 
> ## --
> 
> Jun Ohtani  
> blog : [http://blog.johtani.info](http://blog.johtani.info)
> 
> ## -- Please update your bookmarks! We have moved to [https://discuss.elastic.co/](https://discuss.elastic.co/)
> 
> You received this message because you are subscribed to the Google Groups  
> "elasticsearch" group.  
> To unsubscribe from this group and stop receiving emails from it, send an  
> email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> To view this discussion on the web visit  
> [https://groups.google.com/d/msgid/elasticsearch/CAPW8A5xiZn\_HR3wwMJ84gigEYf5aXv2kzG8CAZiLRHU4%3Dj0kWw%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAPW8A5xiZn_HR3wwMJ84gigEYf5aXv2kzG8CAZiLRHU4%3Dj0kWw%40mail.gmail.com)  
> [https://groups.google.com/d/msgid/elasticsearch/CAPW8A5xiZn\_HR3wwMJ84gigEYf5aXv2kzG8CAZiLRHU4%3Dj0kWw%40mail.gmail.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/CAPW8A5xiZn_HR3wwMJ84gigEYf5aXv2kzG8CAZiLRHU4%3Dj0kWw%40mail.gmail.com?utm_medium=email&utm_source=footer)  
> .  
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--

Debayan Banerjee  
devOps engineer  
+91 8800846550

## -- Please update your bookmarks! We have moved to [https://discuss.elastic.co/](https://discuss.elastic.co/)

You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CAOvawCtP7sdW5Cat3oi-jS74y1c3x9\_1ikvh%3DajPPWsUBDmVHQ%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAOvawCtP7sdW5Cat3oi-jS74y1c3x9_1ikvh%3DajPPWsUBDmVHQ%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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 6, 2017, 12:11am UTC](https://discuss.elastic.co/t/unique-node-id-for-elasticsearch-node/23682/4 "2017-07-06T00:11:58Z")

</div>


