# How to deal with Indices changes from template to index\_patterns?

**URL:** <https://discuss.elastic.co/t/how-to-deal-with-indices-changes-from-template-to-index-patterns/120091>\
**Category:** Elasticsearch\
**Created:** [February 16, 2018, 1:01am UTC](https://discuss.elastic.co/t/how-to-deal-with-indices-changes-from-template-to-index-patterns/120091 "2018-02-16T01:01:02Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![leandrojmp](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/leandrojmp/32/107231_2.png) [@leandrojmp](https://discuss.elastic.co/u/leandrojmp)\
**Post date:** [February 16, 2018, 1:01am UTC](https://discuss.elastic.co/t/how-to-deal-with-indices-changes-from-template-to-index-patterns/120091/1 "2018-02-16T01:01:02Z")

</div>

Hello,

I'm planning to upgrade from 5.6.2 to 6.2.1 and looking into the cluster checkup on the upgrade assistant I saw that the template field in templates will be no longer used in 6.2.X and that I should use the index\_patterns field, so, reading the documentation I understood that I need to upgrade, and before starting indexing I should re-upload my templates changing the 'template' field to 'index\_patterns', is that right?

For example, i just need to change this:

```auto
{
  "order": 0,
  "version": 1,
  "template": "kaspersky-*",
  "settings": {
< rest of the template >

```

To this:

```auto
{
  "order": 0,
  "version": 2,
  "index_patterns": "kaspersky-*",
  "settings": {
< rest of the template >

```

Is that right?

Also, how to deal with existing indices? I have some monthly index and for what I know the template is only looked up when the index is created, how I should proceed in these cases?

---

<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:** [March 16, 2018, 1:01am UTC](https://discuss.elastic.co/t/how-to-deal-with-indices-changes-from-template-to-index-patterns/120091/2 "2018-03-16T01:01:14Z")

</div>

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