# Cannot restore index \[.ds-.logs-deprecation.elasticsearch-default

**URL:** <https://discuss.elastic.co/t/cannot-restore-index-ds-logs-deprecation-elasticsearch-default/316856>\
**Category:** Elasticsearch\
**Tags:** snapshot-and-restore\
**Created:** [October 18, 2022, 8:28am UTC](https://discuss.elastic.co/t/cannot-restore-index-ds-logs-deprecation-elasticsearch-default/316856 "2022-10-18T08:28:23Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![hjsroldan](https://avatars.discourse-cdn.com/v4/letter/h/ea5d25/32.png) [@hjsroldan](https://discuss.elastic.co/u/hjsroldan)\
**Post date:** [October 18, 2022, 8:28am UTC](https://discuss.elastic.co/t/cannot-restore-index-ds-logs-deprecation-elasticsearch-default/316856/1 "2022-10-18T08:28:23Z")

</div>

Hi,

Does someone know if .ds-.logs-deprecation.elasticsearch-default index can be deleted or can it be disabled on the configuration? I'm encountering the error below while restoring my cluster.

{"error":{"root\_cause":[{"type":"snapshot\_restore\_exception","reason":"[backup\_01:snapshot\_01/fJ3sKom6T6-H1Km2qVBUVw] cannot restore index [.ds-.logs-deprecation.elasticsearch-default-2022.10.18-000001] because an open index with same name already exists in the cluster. Either close or delete the existing index or restore the index under a different name by providing a rename pattern and replacement name"}],"type":"snapshot\_restore\_exception","reason":"[backup\_01:snapshot\_01/fJ3sKom6T6-H1Km2qVBUVw] cannot restore index [.ds-.logs-deprecation.elasticsearch-default-2022.10.18-000001] because an open index with same name already exists in the cluster. Either close or delete the existing index or restore the index under a different name by providing a rename pattern and replacemGET 'localhost:9200/\_cat/indices?v' health status index uuid pri rep docs.count docs.deleted store.size pri.store.size

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [October 19, 2022, 3:17am UTC](https://discuss.elastic.co/t/cannot-restore-index-ds-logs-deprecation-elasticsearch-default/316856/2 "2022-10-19T03:17:56Z")

</div>

It's there to log deprecations, as the name suggests.

I wouldn't restore another version over this one, so can you exclude it?

---

<div class="post-metadata">

**Author:** ![hjsroldan](https://avatars.discourse-cdn.com/v4/letter/h/ea5d25/32.png) [@hjsroldan](https://discuss.elastic.co/u/hjsroldan)\
**Post date:** [October 19, 2022, 3:33am UTC](https://discuss.elastic.co/t/cannot-restore-index-ds-logs-deprecation-elasticsearch-default/316856/3 "2022-10-19T03:33:39Z")

</div>

Hi,

I'm restoring the entire cluster using this:

curl -X POST "localhost:9200/\_snapshot/backup\_01/snapshot\_01/\_restore?pretty" -H 'Content-Type: application/json' -d'  
{  
"indices": "\*",  
"include\_global\_state": true  
}  
'

Is there a way where I can restore the entire cluster and exclude the .ds-.logs-deprecation.elasticsearch-default?

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [October 19, 2022, 3:36am UTC](https://discuss.elastic.co/t/cannot-restore-index-ds-logs-deprecation-elasticsearch-default/316856/4 "2022-10-19T03:36:14Z")

</div>

> [@hjsroldan](#):
>
> "indices": "\*",

I would try `"indices": "-.ds-.logs-deprecation.elasticsearch-default, *`".

---

<div class="post-metadata">

**Author:** ![hjsroldan](https://avatars.discourse-cdn.com/v4/letter/h/ea5d25/32.png) [@hjsroldan](https://discuss.elastic.co/u/hjsroldan)\
**Post date:** [October 19, 2022, 5:21am UTC](https://discuss.elastic.co/t/cannot-restore-index-ds-logs-deprecation-elasticsearch-default/316856/5 "2022-10-19T05:21:33Z")

</div>

Thank you!

---

<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:** [November 16, 2022, 5:22am UTC](https://discuss.elastic.co/t/cannot-restore-index-ds-logs-deprecation-elasticsearch-default/316856/6 "2022-11-16T05:22:28Z")

</div>

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