# Elasticsearch snapshot in cluster environment

**URL:** <https://discuss.elastic.co/t/elasticsearch-snapshot-in-cluster-environment/90942>\
**Category:** Elasticsearch\
**Created:** [June 27, 2017, 10:42am UTC](https://discuss.elastic.co/t/elasticsearch-snapshot-in-cluster-environment/90942 "2017-06-27T10:42:00Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![tharu85](https://avatars.discourse-cdn.com/v4/letter/t/e95f7d/32.png) [@tharu85](https://discuss.elastic.co/u/tharu85)\
**Post date:** [June 27, 2017, 10:42am UTC](https://discuss.elastic.co/t/elasticsearch-snapshot-in-cluster-environment/90942/1 "2017-06-27T10:42:01Z")

</div>

I have implemented a log server using a Elasticsearch cluster which has 2 elasticsearch nodes.

Indexing naming on both servers are same. As an example for index logstash\_1, on both elasticsearch nodes shows as logstash\_1

So If I create a snapshot on one elasticsearch node index, will it create the full snapshot of that index ?. My exact requirement is illustrated as below.

![](https://us1.discourse-cdn.com/elastic/original/3X/f/5/f5c66182c3a174a3be5d5d02addb90d2c2330a85.jpg)

---

<div class="post-metadata">

**Author:** ![Julien](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/julien/32/19688_2.png) [@Julien](https://discuss.elastic.co/u/Julien)\
**Post date:** [June 29, 2017, 10:34am UTC](https://discuss.elastic.co/t/elasticsearch-snapshot-in-cluster-environment/90942/2 "2017-06-29T10:34:37Z")

</div>

A few pointers:

- snapshot is for an index (regardless number/distribution of shards - indices would have their shard spread across the cluster)
- you cannot create two indices of the same name in the same Elasticsearch cluster. Therefore I assume if you say you have two indices with exact same name on two nodes, you really have 2 clusters of 1 node - or else you really have only one index (on 2 nodes cluster each indices would have its primary and replica shards distributed evenly)
- In case you have 2 clusters, if you want one snapshot on each cluster you will need to generate one snapshot for each cluster

A few API you can use:

- http://node\_name:9200/\_cat/nodes -\> this will tell you how many node your cluster has (assuming ES runs on 9200)
- http://node\_name:9200/\_cat/indices?v -\> this will give you list of indices on your cluster
- https://node\_name:9200/\_cat/shards?v -\> this will tell you where each shard is located and if replicas are assigned

---

<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 27, 2017, 10:34am UTC](https://discuss.elastic.co/t/elasticsearch-snapshot-in-cluster-environment/90942/3 "2017-07-27T10:34:41Z")

</div>

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