# Specifying a index in an ES 5.3 snapshot request does not seem to work

**URL:** <https://discuss.elastic.co/t/specifying-a-index-in-an-es-5-3-snapshot-request-does-not-seem-to-work/229867>\
**Category:** Elasticsearch\
**Tags:** slm-snapshot-lifecycle-management\
**Created:** [April 26, 2020, 7:47pm UTC](https://discuss.elastic.co/t/specifying-a-index-in-an-es-5-3-snapshot-request-does-not-seem-to-work/229867 "2020-04-26T19:47:00Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![markuseb91](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/markuseb91/32/47241_2.png) [@markuseb91](https://discuss.elastic.co/u/markuseb91)\
**Post date:** [April 26, 2020, 7:47pm UTC](https://discuss.elastic.co/t/specifying-a-index-in-an-es-5-3-snapshot-request-does-not-seem-to-work/229867/1 "2020-04-26T19:47:00Z")

</div>

Greetings,

I'm using ES 5.3 with a cluster that has 9 data nodes, 3 master nodes and 28 indexes.

Snapshots are sent to s3.

The request I use to create the snapshot uses the following JSON body.

```auto
{
	"type": "s3",
	"settings": {
		"indices" : "my-march-logs",
		"ignore_unavailable" : true,
		"include_global_state" : false,
		"bucket" : "<my-bucket>",
		"region" : "<my-region>",
		"endpoint" : "<my-endpoint>",
		"base_path": "<my-base-path>"
	}
}

```

I would also like to point out that the base\_path references a new s3 repo .

When I check on the progress of the snapshot I see all the indexes listed. I cannot share the response due to security concerns.

Is there some secret handshake that I'm missing? The **my-march-logs** index is only 77.5gb but the whole snapshot process is taking in excess of 12 hours for all 28 indexes. There is one index that is in excess of 700gb so I suspect that index is being included in the snapshot as well as the one indicated.

I would love to know what is actually happening and how to specify a specific index correctly.

Thanks,  
Mark

---

<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:** [April 27, 2020, 3:10pm UTC](https://discuss.elastic.co/t/specifying-a-index-in-an-es-5-3-snapshot-request-does-not-seem-to-work/229867/2 "2020-04-27T15:10:48Z")

</div>

Your request looks rather different from the one in the [docs](https://www.elastic.co/guide/en/elasticsearch/reference/5.3/modules-snapshots.html#_snapshot), in particular there's no `settings` nor should you specify the repository details here (`bucket`, `region`, etc.). The docs say to do this:

```auto
PUT /_snapshot/my_backup/snapshot_1
{
  "indices": "index_1,index_2",
  "ignore_unavailable": true,
  "include_global_state": false
}

```

---

<div class="post-metadata">

**Author:** ![markuseb91](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/markuseb91/32/47241_2.png) [@markuseb91](https://discuss.elastic.co/u/markuseb91)\
**Post date:** [April 29, 2020, 9:20am UTC](https://discuss.elastic.co/t/specifying-a-index-in-an-es-5-3-snapshot-request-does-not-seem-to-work/229867/3 "2020-04-29T09:20:29Z")

</div>

Thank you! That was it.

---

<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:** [May 27, 2020, 9:20am UTC](https://discuss.elastic.co/t/specifying-a-index-in-an-es-5-3-snapshot-request-does-not-seem-to-work/229867/4 "2020-05-27T09:20:34Z")

</div>

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