# Mapping error for rollover

**URL:** https://discuss.elastic.co/t/mapping-error-for-rollover/358035
**Category:** Logstash
**Tags:** ilm-index-lifecycle-management
**Created:** [April 23, 2024, 1:51pm UTC](https://discuss.elastic.co/t/mapping-error-for-rollover/358035 "2024-04-23T13:51:46Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![h.d.intodata](https://avatars.discourse-cdn.com/v4/letter/h/c67d28/32.png) [@h.d.intodata](https://discuss.elastic.co/u/h.d.intodata)
#### Post date: [April 23, 2024, 1:51pm UTC](https://discuss.elastic.co/t/mapping-error-for-rollover/358035/1 "2024-04-23T13:51:46Z")

</div>

Hi team,

I have a working ilm policy and template which rollsover the index. However, I cannot get the mappings to work in the policy, i a large list of errors such as:

```auto
index_template [my-alias] invalid, cause [Validation Failed: 1: unknown setting [index.mappings.properties.metricset.properties.name.type] please check that any required plugins are installed, or check the breaking changes documentation for removed settings;

```

Even though these index mappings work for the original index and my first test rollover index. My main question is, how can I get the rollover template to automatically put the mapping on the new index?

I got the mapping from the original index to go to the test rollover index by using:

```auto
POST /_reindex
{
  "source": {
    "index": "metric-amq"
  },
  "dest": {
    "index": "my-index-000001"
  }
}

```
