# How to convert default index template from 5.6 to 7.9?

**URL:** https://discuss.elastic.co/t/how-to-convert-default-index-template-from-5-6-to-7-9/249112
**Category:** Elasticsearch
**Created:** [September 18, 2020, 2:05pm UTC](https://discuss.elastic.co/t/how-to-convert-default-index-template-from-5-6-to-7-9/249112 "2020-09-18T14:05:12Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![jze](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jze/32/47285_2.png) [@jze](https://discuss.elastic.co/u/jze)
#### Post date: [September 18, 2020, 2:05pm UTC](https://discuss.elastic.co/t/how-to-convert-default-index-template-from-5-6-to-7-9/249112/1 "2020-09-18T14:05:12Z")

</div>

Hello,

I have from ELK 5.6 stack this default index template definition:

```
PUT /_template/mytemplate
{
   "template":".kibana-*",
   "settings":{
      "number_of_shards":1
   },
   "mappings":{
      "config":{
         "properties":{
            "buildNum":{
               "type":"keyword"
            }
         }
      },
      "index-pattern":{
         "properties":{
            "fieldFormatMap":{
               "type":"text"
            },
            "fields":{
               "type":"text"
            },
            "intervalName":{
               "type":"keyword"
            },
            "notExpandable":{
               "type":"boolean"
            },
            "sourceFilters":{
               "type":"text"
            },
            "timeFieldName":{
               "type":"keyword"
            },
            "title":{
               "type":"text"
            }
         }
      },
      "visualization":{
         "properties":{
            "description":{
               "type":"text"
            },
            "kibanaSavedObjectMeta":{
               "properties":{
                  "searchSourceJSON":{
                     "type":"text"
                  }
               }
            },
            "savedSearchId":{
               "type":"keyword"
            },
            "title":{
               "type":"text"
            },
            "uiStateJSON":{
               "type":"text"
            },
            "version":{
               "type":"integer"
            },
            "visState":{
               "type":"text"
            }
         }
      },
      "search":{
         "properties":{
            "columns":{
               "type":"keyword"
            },
            "description":{
               "type":"text"
            },
            "hits":{
               "type":"integer"
            },
            "kibanaSavedObjectMeta":{
               "properties":{
                  "searchSourceJSON":{
                     "type":"text"
                  }
               }
            },
            "sort":{
               "type":"keyword"
            },
            "title":{
               "type":"text"
            },
            "version":{
               "type":"integer"
            }
         }
      },
      "dashboard":{
         "properties":{
            "description":{
               "type":"text"
            },
            "hits":{
               "type":"integer"
            },
            "kibanaSavedObjectMeta":{
               "properties":{
                  "searchSourceJSON":{
                     "type":"text"
                  }
               }
            },
            "optionsJSON":{
               "type":"text"
            },
            "panelsJSON":{
               "type":"text"
            },
            "refreshInterval":{
               "properties":{
                  "display":{
                     "type":"keyword"
                  },
                  "pause":{
                     "type":"boolean"
                  },
                  "section":{
                     "type":"integer"
                  },
                  "value":{
                     "type":"integer"
                  }
               }
            },
            "timeFrom":{
               "type":"keyword"
            },
            "timeRestore":{
               "type":"boolean"
            },
            "timeTo":{
               "type":"keyword"
            },
            "title":{
               "type":"text"
            },
            "uiStateJSON":{
               "type":"text"
            },
            "version":{
               "type":"integer"
            }
         }
      },
      "url":{
         "properties":{
            "accessCount":{
               "type":"long"
            },
            "accessDate":{
               "type":"date"
            },
            "createDate":{
               "type":"date"
            },
            "url":{
               "type":"text",
               "fields":{
                  "keyword":{
                     "type":"keyword",
                     "ignore_above":2048
                  }
               }
            }
         }
      },
      "server":{
         "properties":{
            "uuid":{
               "type":"keyword"
            }
         }
      },
      "timelion-sheet":{
         "properties":{
            "description":{
               "type":"text"
            },
            "hits":{
               "type":"integer"
            },
            "kibanaSavedObjectMeta":{
               "properties":{
                  "searchSourceJSON":{
                     "type":"text"
                  }
               }
            },
            "timelion_chart_height":{
               "type":"integer"
            },
            "timelion_columns":{
               "type":"integer"
            },
            "timelion_interval":{
               "type":"keyword"
            },
            "timelion_other_interval":{
               "type":"keyword"
            },
            "timelion_rows":{
               "type":"integer"
            },
            "timelion_sheet":{
               "type":"text"
            },
            "title":{
               "type":"text"
            },
            "version":{
               "type":"integer"
            }
         }
      }
   }
}

```

If I try to set it in 7.9 I get the "Root mapping definition has unsupported parameters" error.  
It seems that multiple mappings (config, index-pattern, visualization, ...) are not supported this way anymore.  
How do I set the same in 7.9 ?

---

<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 20, 2020, 9:33pm UTC](https://discuss.elastic.co/t/how-to-convert-default-index-template-from-5-6-to-7-9/249112/2 "2020-09-20T21:33:12Z")

</div>

I would suggest that altering the Kibana template/mapping is not a good thing.

What problem are you trying to resolve by doing this?

---

<div class="post-metadata">

### Author: ![jze](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jze/32/47285_2.png) [@jze](https://discuss.elastic.co/u/jze)
#### Post date: [September 21, 2020, 7:48am UTC](https://discuss.elastic.co/t/how-to-convert-default-index-template-from-5-6-to-7-9/249112/3 "2020-09-21T07:48:04Z")

</div>

The ELK server was handed over to me when my colleague left and I need to upgrade it as I need a feature not available in the old version. I admit I don't understand it much so I want to keep it the same way as it was configured.

---

<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 21, 2020, 8:10am UTC](https://discuss.elastic.co/t/how-to-convert-default-index-template-from-5-6-to-7-9/249112/4 "2020-09-21T08:10:00Z")

</div>

Again, I would suggest that is not the best idea.

---

<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 19, 2020, 8:10am UTC](https://discuss.elastic.co/t/how-to-convert-default-index-template-from-5-6-to-7-9/249112/5 "2020-10-19T08:10:09Z")

</div>

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