# Failed to migrate index to cold storage because another index with the same name already exists in cold storage

**URL:** <https://discuss.elastic.co/t/failed-to-migrate-index-to-cold-storage-because-another-index-with-the-same-name-already-exists-in-cold-storage/285517>\
**Category:** Elasticsearch\
**Created:** [September 29, 2021, 8:03pm UTC](https://discuss.elastic.co/t/failed-to-migrate-index-to-cold-storage-because-another-index-with-the-same-name-already-exists-in-cold-storage/285517 "2021-09-29T20:03:38Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![techenthusiast](https://avatars.discourse-cdn.com/v4/letter/t/e99b99/32.png) [@techenthusiast](https://discuss.elastic.co/u/techenthusiast)\
**Post date:** [September 29, 2021, 8:03pm UTC](https://discuss.elastic.co/t/failed-to-migrate-index-to-cold-storage-because-another-index-with-the-same-name-already-exists-in-cold-storage/285517/1 "2021-09-29T20:03:38Z")

</div>

Team,

I am getting below issue when i implemented cold storage on an existing Elasticsearch cluster.

Failed to migrate index to cold storage because another index with the same name already exists in cold storage. Need help in getting around and fixing this issue.

Thanks,  
Hemanth

---

<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:** [September 29, 2021, 11:12pm UTC](https://discuss.elastic.co/t/failed-to-migrate-index-to-cold-storage-because-another-index-with-the-same-name-already-exists-in-cold-storage/285517/2 "2021-09-29T23:12:57Z")

</div>

Welcome to our community! 😃

Where are you seeing this? What is the full error?  
What does your policy look like?

---

<div class="post-metadata">

**Author:** ![techenthusiast](https://avatars.discourse-cdn.com/v4/letter/t/e99b99/32.png) [@techenthusiast](https://discuss.elastic.co/u/techenthusiast)\
**Post date:** [September 30, 2021, 1:37am UTC](https://discuss.elastic.co/t/failed-to-migrate-index-to-cold-storage-because-another-index-with-the-same-name-already-exists-in-cold-storage/285517/3 "2021-09-30T01:37:34Z")

</div>

Hi Mark, We are trying to implement the cold storage in our ES domain, Earlier we used to have 'hot-warm-delete' policy. We now wanted to implement 'Hot-warm-cold-delete' policy. I am adding the snippet on how the updated ISM policy looks like.

```auto
{
    "policy_id": "es-cluster-3-ism",
    "description": "es index hot-warm-cold-delete workflow.",
    "last_updated_time": 1632754240563,
    "schema_version": 1,
    "error_notification": {
        "destination": {
            "slack": {
                "url": "<placeholder>"
            }
        },
        "message_template": {
            "source": "The index {{ctx.index}} failed during policy execution - {{ctx.policy_id}}.",
            "lang": "mustache"
        }
    },
    "default_state": "hot",
    "states": [
        {
            "name": "hot",
            "actions": [],
            "transitions": [
                {
                    "state_name": "warm",
                    "conditions": {
                        "min_index_age": "1h"
                    }
                }
            ]
        },
        {
            "name": "warm",
            "actions": [
                {
                    "retry": {
                        "count": 5,
                        "backoff": "exponential",
                        "delay": "1h"
                    },
                    "warm_migration": {}
                }
            ],
            "transitions": [
                {
                    "state_name": "cold",
                    "conditions": {
                        "min_index_age": "1h"
                    }
                }
            ]
        },
        {
            "name": "cold",
            "actions": [
                {
                    "cold_migration": {
                        "start_time": null,
                        "end_time": null,
                        "timestamp_field": "@timestamp",
                        "ignore": "none"
                    }
                }
            ],
            "transitions": [
                {
                    "state_name": "delete",
                    "conditions": {
                        "min_index_age": "1h"
                    }
                }
            ]
        },
        {
            "name": "delete",
            "actions": [
                {
                    "notification": {
                        "destination": {
                            "slack": {
                                "url": "<placeholder>"
                            }
                        },
                        "message_template": {
                            "source": "The index {{ctx.index}} is being deleted - {{ctx.policy_id}}.",
                            "lang": "mustache"
                        }
                    }
                },
                {
                    "cold_delete": {}
                }
            ],
            "transitions": []
        }
    ],
    "ism_template": [
        {
            "index_patterns": [
                "logstash-*"
            ],
            "priority": 100,
            "last_updated_time": 1632754240562
        }
    ]
}

```

---

<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:** [September 30, 2021, 1:39am UTC](https://discuss.elastic.co/t/failed-to-migrate-index-to-cold-storage-because-another-index-with-the-same-name-already-exists-in-cold-storage/285517/4 "2021-09-30T01:39:06Z")

</div>

Is this is indeed ism then that's an aws concept, it's not something that we can help with sorry.

---

<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:** [October 28, 2021, 1:39am UTC](https://discuss.elastic.co/t/failed-to-migrate-index-to-cold-storage-because-another-index-with-the-same-name-already-exists-in-cold-storage/285517/5 "2021-10-28T01:39:41Z")

</div>

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