# After restoring the snapshot, the index is not associated with the data stream

**URL:** <https://discuss.elastic.co/t/after-restoring-the-snapshot-the-index-is-not-associated-with-the-data-stream/361561>\
**Category:** Elasticsearch\
**Tags:** snapshot-and-restore\
**Created:** [June 17, 2024, 6:56am UTC](https://discuss.elastic.co/t/after-restoring-the-snapshot-the-index-is-not-associated-with-the-data-stream/361561 "2024-06-17T06:56:00Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![dxygit1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dxygit1/32/135045_2.png) [@dxygit1](https://discuss.elastic.co/u/dxygit1)\
**Post date:** [June 17, 2024, 6:56am UTC](https://discuss.elastic.co/t/after-restoring-the-snapshot-the-index-is-not-associated-with-the-data-stream/361561/1 "2024-06-17T06:56:00Z")

</div>

Before deleting, the index was associated with a data stream.

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/f/4/f45f3379bdd71e817ada6c686acd41d9fd512edb.png)  
After restoring from the snapshot, the data stream was lost.

```bash
curl -X POST "localhost:9200/_snapshot/es-backup-log-analysis/log-analysis-2024.06.13-sflp5oxttgk_gii_6_qohq/_restore" -H 'Content-Type: application/json' -d'
{
  "indices": ".ds-tcc-log-qa-rewe24-2024.06.03-000012",
  "ignore_unavailable": true,
  "include_global_state": false
}'

```

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/9/1/91ac25ed8e6f7a4182443b488d644b5c4bba92b5.png)

Snapshot policies

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/3/2/321dfea09161b19631e9a7d2659d29823c9c4592.png)

---

<div class="post-metadata">

**Author:** ![dxygit1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dxygit1/32/135045_2.png) [@dxygit1](https://discuss.elastic.co/u/dxygit1)\
**Post date:** [June 18, 2024, 6:23am UTC](https://discuss.elastic.co/t/after-restoring-the-snapshot-the-index-is-not-associated-with-the-data-stream/361561/2 "2024-06-18T06:23:13Z")

</div>

Can you help me with this?
