# ElasticSearch index template from 6.8 to 7.4 need some help

**URL:** https://discuss.elastic.co/t/elasticsearch-index-template-from-6-8-to-7-4-need-some-help/203907
**Category:** Elasticsearch
**Created:** [October 16, 2019, 6:29pm UTC](https://discuss.elastic.co/t/elasticsearch-index-template-from-6-8-to-7-4-need-some-help/203907 "2019-10-16T18:29:37Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![iukea](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/iukea/32/49083_2.png) [@iukea](https://discuss.elastic.co/u/iukea)
#### Post date: [October 16, 2019, 6:29pm UTC](https://discuss.elastic.co/t/elasticsearch-index-template-from-6-8-to-7-4-need-some-help/203907/1 "2019-10-16T18:29:38Z")

</div>

Hello guys/girls,

I am trying to upgrade from ElasticSearch 6.8 to 7.4 and need some help with my ElasticSearch index template.

My current template

```auto
{
  "template" : "logstash-*",
  "version" : 60001,
  "settings" : {
    "index.refresh_interval" : "5s",
    "index.number_of_shards" : "1",
    "index.number_of_replicas" : "0",
    "index.mapping.total_fields.limit": "2000"
  },
  "mappings" : {
    "_default_" : {
      "dynamic_templates" : [ {
        "message_field" : {
          "path_match" : "message",
          "match_mapping_type" : "string",
          "mapping" : {
            "type" : "text",
            "norms" : false
          }
        }
      }, {
        "string_fields" : {
          "match" : "*",
          "match_mapping_type" : "string",
          "mapping" : {
            "type" : "text", "norms" : false,
            "fields" : {
              "keyword" : { "type": "keyword", "ignore_above": 256 }
            }
          }
        }
      } ],
      "properties" : {
        "@timestamp": { "type": "date"},
        "@version": { "type": "keyword"},
        "geoip" : {
          "dynamic": true,
          "properties" : {
            "ip": { "type": "ip" },
            "location" : { "type" : "geo_point" },
            "latitude" : { "type" : "half_float" },
            "longitude" : { "type" : "half_float" }
          }
        }
      }
    }
  }
}

```

and I keep on getting the following error

```auto
#! Deprecation: [types removal] The parameter include_type_name should be explicitly specified in put template requests to prepare for 7.0. In 7.0 include_type_name will default to 'false', and requests are expected to omit the type name in mapping definitions.
#! Deprecation: Deprecated field [template] used, replaced by [index_patterns]
{
  "acknowledged" : true
}

```

What do I need to do to my template for it to work in ElasticSearch 7.4?

I have read

[https://www.elastic.co/guide/en/elasticsearch/reference/current/mapping.html](https://www.elastic.co/guide/en/elasticsearch/reference/current/mapping.html)

Along with a couple of other docs.

I know in 7.4, the removal of types is in place, but I don't know what to do to fix this problem. Feel like most of the docs are going straight over my head.

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

---

<div class="post-metadata">

### Author: ![elasticforme](https://avatars.discourse-cdn.com/v4/letter/e/f05b48/32.png) [@elasticforme](https://discuss.elastic.co/u/elasticforme)
#### Post date: [October 16, 2019, 6:49pm UTC](https://discuss.elastic.co/t/elasticsearch-index-template-from-6-8-to-7-4-need-some-help/203907/2 "2019-10-16T18:49:05Z")

</div>

I had same question few month back when I am upgrading.

[https://discuss.elastic.co/t/resolving-deprecation-warnings-to-allow-us-to-upgrade/178038/5](https://discuss.elastic.co/t/resolving-deprecation-warnings-to-allow-us-to-upgrade/178038/5)

---

<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 13, 2019, 6:49pm UTC](https://discuss.elastic.co/t/elasticsearch-index-template-from-6-8-to-7-4-need-some-help/203907/3 "2019-11-13T18:49:08Z")

</div>

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