# Migration Deprecation for Phantom Index Templates

**URL:** https://discuss.elastic.co/t/migration-deprecation-for-phantom-index-templates/295096
**Category:** Elasticsearch
**Created:** [January 21, 2022, 8:29pm UTC](https://discuss.elastic.co/t/migration-deprecation-for-phantom-index-templates/295096 "2022-01-21T20:29:54Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![cspencer](https://avatars.discourse-cdn.com/v4/letter/c/4da419/32.png) [@cspencer](https://discuss.elastic.co/u/cspencer)
#### Post date: [January 21, 2022, 8:29pm UTC](https://discuss.elastic.co/t/migration-deprecation-for-phantom-index-templates/295096/1 "2022-01-21T20:29:54Z")

</div>

I just upgraded my Elasticsearch cluster from `7.13.4` to `7.16.3` . After upgrading all nodes in the cluster, I checked the migration deprecations endpoint and found this warning:

```auto
GET _migration/deprecations
{
	"cluster_settings": [
		{
			"level": "warning",
			"message": "Custom mapping types in index templates are deprecated",
			"url": "https://ela.st/es-deprecation-7-custom-types",
			"details": "Update or remove the following index templates before upgrading to 8.0: [.watch-history-7, logstash]. See https://ela.st/es-deprecation-7-removal-of-types for alternatives to mapping types.",
			"resolve_during_rolling_upgrade": false
		}
	],
	"node_settings": [],
	"index_settings": {},
	"ml_settings": [],
	"ccr_auto_followed_system_indices": []
}

```

I then checked the index\_template endpoint for the `.watch-history-7` and `logstash` index templates but they aren't there (shortened for readability):

```auto
GET _index_template
{
    "index_templates": [
        {
            "name": ".triggered_watches",
            "index_template": {
                "index_patterns": [
                    ".triggered_watches*"
                ],
                ...
            }
        },
        {
            "name": "synthetics",
            "index_template": {
                "index_patterns": [
                    "synthetics-*-*"
                ],
                ...
            }
        },
        {
            "name": ".watch-history-13",
            "index_template": {
                "index_patterns": [
                    ".watcher-history-13*"
                ],
                ...
            }
        },
        {
            "name": "ilm-history",
            "index_template": {
                "index_patterns": [
                    "ilm-history-5*"
                ],
                ...
            }
        },
        {
            "name": ".ml-state",
            "index_template": {
                "index_patterns": [
                    ".ml-state*"
                ],
                ...
            }
        },
        {
            "name": ".slm-history",
            "index_template": {
                "index_patterns": [
                    ".slm-history-5*"
                ],
                ...
            }
        },
        {
            "name": "metrics",
            "index_template": {
                "index_patterns": [
                    "metrics-*-*"
                ],
                ...
            }
        },
        {
            "name": ".ml-anomalies-",
            "index_template": {
                "index_patterns": [
                    ".ml-anomalies-*"
                ],
                ...
            }
        },
        {
            "name": ".ml-notifications-000002",
            "index_template": {
                "index_patterns": [
                    ".ml-notifications-000002"
                ],
                ...
            }
        },
        {
            "name": ".deprecation-indexing-template",
            "index_template": {
                "index_patterns": [
                    ".logs-deprecation.*"
                ],
                ...
            }
        },
        {
            "name": ".watches",
            "index_template": {
                "index_patterns": [
                    ".watches*"
                ],
                ...
            }
        },
        {
            "name": "logs",
            "index_template": {
                "index_patterns": [
                    "logs-*-*"
                ],
                ...
            }
        },
        {
            "name": ".ml-stats",
            "index_template": {
                "index_patterns": [
                    ".ml-stats-*"
                ],
                ...
            }
        }
    ]
}

```

What am I missing? Am I looking in the wrong place for the index templates? Is this actually a concern before I upgrade to v8.0? Is there a way to resolve the warning? Thanks in advance!

---

<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: [February 18, 2022, 8:30pm UTC](https://discuss.elastic.co/t/migration-deprecation-for-phantom-index-templates/295096/2 "2022-02-18T20:30:04Z")

</div>

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