# Mapping conflict between two indexes of different versions of metricbeat

**URL:** https://discuss.elastic.co/t/mapping-conflict-between-two-indexes-of-different-versions-of-metricbeat/333010
**Category:** Elasticsearch
**Created:** [May 10, 2023, 1:21am UTC](https://discuss.elastic.co/t/mapping-conflict-between-two-indexes-of-different-versions-of-metricbeat/333010 "2023-05-10T01:21:53Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![ElasticLiver](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/elasticliver/32/64869_2.png) [@ElasticLiver](https://discuss.elastic.co/u/ElasticLiver)
#### Post date: [May 10, 2023, 1:21am UTC](https://discuss.elastic.co/t/mapping-conflict-between-two-indexes-of-different-versions-of-metricbeat/333010/1 "2023-05-10T01:21:53Z")

</div>

Hi, I have two metricbeats with diferent versions pointing to the same elasticsearch, the difference between their mapping is causing me problems when I try to use the control visualization in kibana.

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

if i choose to use the field `psql.name.keyword` only the values of the index `metricbeat-7.17.9` appears in the dropdown.

if i choose to use the field `psql.name` only the values of the index `metricbeat-7.17.5` appears in the dropdown.

These are the mapping of the indexes:

```auto
{
  "metricbeat-7.17.9" : {
    "mappings" : {
      "psql.name" : {
        "full_name" : "psql.name",
        "mapping" : {
          "name" : {
            "type" : "text",
            "fields" : {
              "keyword" : {
                "type" : "keyword",
                "ignore_above" : 256
              }
            }
          }
        }
      }
    }
  }
}

```

```auto
  "metricbeat-7.17.5" : {
    "mappings" : {
      "psql.name" : {
        "full_name" : "psql.name",
        "mapping" : {
          "name" : {
            "type" : "keyword",
            "ignore_above" : 1024
          }
        }
      }
    }
  }

```

Any ideas on how to solve this?

Thanks!

---

<div class="post-metadata">

### Author: ![stephenb](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stephenb/32/40856_2.png) [@stephenb](https://discuss.elastic.co/u/stephenb)
#### Post date: [May 10, 2023, 3:05am UTC](https://discuss.elastic.co/t/mapping-conflict-between-two-indexes-of-different-versions-of-metricbeat/333010/2 "2023-05-10T03:05:40Z")

</div>

> [@ElasticLiver](#):
>
> ```auto
> {
> "metricbeat-7.17.9" : {
> "mappings" : {
> "psql.name" : {
> "full_name" : "psql.name",
> "mapping" : {
> "name" : {
> "type" : "text",
> "fields" : {
> "keyword" : {
> "type" : "keyword",
> "ignore_above" : 256
> }
> }
> }
> }
> }
> }
> }
> }
> 
> ```

Did you run `filebeat setup -e` for the 7.17.9 version _ **before** _ you started the feed, that looks like a default mapping not the template mapping..

---

<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: [May 10, 2023, 3:07am UTC](https://discuss.elastic.co/t/mapping-conflict-between-two-indexes-of-different-versions-of-metricbeat/333010/3 "2023-05-10T03:07:53Z")

</div>

Also can you update all instances to the same version?

---

<div class="post-metadata">

### Author: ![ElasticLiver](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/elasticliver/32/64869_2.png) [@ElasticLiver](https://discuss.elastic.co/u/ElasticLiver)
#### Post date: [May 10, 2023, 3:10am UTC](https://discuss.elastic.co/t/mapping-conflict-between-two-indexes-of-different-versions-of-metricbeat/333010/4 "2023-05-10T03:10:09Z")

</div>

Hi, No, I did not. is there a way to solve this?

---

<div class="post-metadata">

### Author: ![ElasticLiver](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/elasticliver/32/64869_2.png) [@ElasticLiver](https://discuss.elastic.co/u/ElasticLiver)
#### Post date: [May 10, 2023, 3:16am UTC](https://discuss.elastic.co/t/mapping-conflict-between-two-indexes-of-different-versions-of-metricbeat/333010/5 "2023-05-10T03:16:17Z")

</div>

I think I can, but I will have to reindex the data? how to make shure that this custom field has the same mapping than the 7.17.5 when reindexing?

---

<div class="post-metadata">

### Author: ![stephenb](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stephenb/32/40856_2.png) [@stephenb](https://discuss.elastic.co/u/stephenb)
#### Post date: [May 10, 2023, 3:55am UTC](https://discuss.elastic.co/t/mapping-conflict-between-two-indexes-of-different-versions-of-metricbeat/333010/6 "2023-05-10T03:55:50Z")

</div>

> [@ElasticLiver](#):
>
> I think I can, but I will have to reindex the data? how to make shure that this custom field has the same mapping than the 7.17.5 when reindexing?

You should run setup and that should load the correct template and then reindex.

---

<div class="post-metadata">

### Author: ![ElasticLiver](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/elasticliver/32/64869_2.png) [@ElasticLiver](https://discuss.elastic.co/u/ElasticLiver)
#### Post date: [May 10, 2023, 4:04am UTC](https://discuss.elastic.co/t/mapping-conflict-between-two-indexes-of-different-versions-of-metricbeat/333010/7 "2023-05-10T04:04:53Z")

</div>

Keeping 7.17.9 or 7.17.5?

---

<div class="post-metadata">

### Author: ![stephenb](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stephenb/32/40856_2.png) [@stephenb](https://discuss.elastic.co/u/stephenb)
#### Post date: [May 10, 2023, 5:19am UTC](https://discuss.elastic.co/t/mapping-conflict-between-two-indexes-of-different-versions-of-metricbeat/333010/8 "2023-05-10T05:19:15Z")

</div>

In short you always need to run setup for the version you are upgrading to... At least once.

So apologies typo run set for the new 7.17.9

---

<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: [June 7, 2023, 5:19am UTC](https://discuss.elastic.co/t/mapping-conflict-between-two-indexes-of-different-versions-of-metricbeat/333010/9 "2023-06-07T05:19:20Z")

</div>

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