# Set node's id

**URL:** <https://discuss.elastic.co/t/set-nodes-id/221559>\
**Category:** Elasticsearch\
**Created:** [March 1, 2020, 7:27am UTC](https://discuss.elastic.co/t/set-nodes-id/221559 "2020-03-01T07:27:08Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![oengel](https://avatars.discourse-cdn.com/v4/letter/o/bcef8e/32.png) [@oengel](https://discuss.elastic.co/u/oengel)\
**Post date:** [March 1, 2020, 7:27am UTC](https://discuss.elastic.co/t/set-nodes-id/221559/1 "2020-03-01T07:27:09Z")

</div>

Hi,  
I want to set the node id by myself.  
It won't overlap other nodes ids.  
Ive tried configuring it in the yml using 'name', but it's not working (found an old page stating that this is the way to do so)

How can I set the node's ID?

best regards,  
Oded.

---

<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:** [March 1, 2020, 7:35am UTC](https://discuss.elastic.co/t/set-nodes-id/221559/2 "2020-03-01T07:35:02Z")

</div>

It sounds like maybe you found some misleading or out-of-date docs, but since you didn't link to them we can't really tell.

The setting you are looking for is [`node.name`](https://www.elastic.co/guide/en/elasticsearch/reference/current/node.name.html).

---

<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:** [March 29, 2020, 7:35am UTC](https://discuss.elastic.co/t/set-nodes-id/221559/3 "2020-03-29T07:35:09Z")

</div>

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