# Getting local node id from cluster state

**URL:** <https://discuss.elastic.co/t/getting-local-node-id-from-cluster-state/9417>\
**Category:** Elasticsearch\
**Created:** [October 18, 2012, 8:25pm UTC](https://discuss.elastic.co/t/getting-local-node-id-from-cluster-state/9417 "2012-10-18T20:25:18Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![James\_McGill](https://avatars.discourse-cdn.com/v4/letter/j/8797f3/32.png) [@James\_McGill](https://discuss.elastic.co/u/James_McGill)\
**Post date:** [October 18, 2012, 8:25pm UTC](https://discuss.elastic.co/t/getting-local-node-id-from-cluster-state/9417/1 "2012-10-18T20:25:18Z")

</div>

I'm working on a backup procedure where I would like to build the path to  
index files.

So, for the /0/ in these paths:

.../data/elasticsearch/nodes/0/\_state  
.../data/elasticsearch/nodes/0/indices

Is it possible to get that information from a ClusterStateResponse?

- James

--

---

<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, 3:07am UTC](https://discuss.elastic.co/t/getting-local-node-id-from-cluster-state/9417/2 "2017-07-06T03:07:59Z")

</div>


