# Invalid mapping error in metricbeat 7.16.2

**URL:** https://discuss.elastic.co/t/invalid-mapping-error-in-metricbeat-7-16-2/308264
**Category:** Beats
**Tags:** metricbeat
**Created:** [June 27, 2022, 2:07pm UTC](https://discuss.elastic.co/t/invalid-mapping-error-in-metricbeat-7-16-2/308264 "2022-06-27T14:07:03Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![ritesh811](https://avatars.discourse-cdn.com/v4/letter/r/3e96dc/32.png) [@ritesh811](https://discuss.elastic.co/u/ritesh811)
#### Post date: [June 27, 2022, 2:07pm UTC](https://discuss.elastic.co/t/invalid-mapping-error-in-metricbeat-7-16-2/308264/1 "2022-06-27T14:07:03Z")

</div>

I am facing the below error in my metricbeat index in kibana

illegal\_state\_exception: invalid mapping definition, expected a single map underneath [\_doc] but it was: [{\_meta={beat=metricbeat, version=7.16.2}, dynamic\_templates

I have an ILM policy whose hot phase is set at 1-day rollover, this is working fine for the first 2 days, and after 3rd day this mapping error in showing up in this metricbeat index in kibana

The version of metricbeat : 7.16.2 version

Can somebody pls help

---

<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: [June 28, 2022, 1:02am UTC](https://discuss.elastic.co/t/invalid-mapping-error-in-metricbeat-7-16-2/308264/2 "2022-06-28T01:02:43Z")

</div>

Please share the entire error that you are seeing.

---

<div class="post-metadata">

### Author: ![ritesh811](https://avatars.discourse-cdn.com/v4/letter/r/3e96dc/32.png) [@ritesh811](https://discuss.elastic.co/u/ritesh811)
#### Post date: [June 29, 2022, 5:05am UTC](https://discuss.elastic.co/t/invalid-mapping-error-in-metricbeat-7-16-2/308264/3 "2022-06-29T05:05:10Z")

</div>

Hi Mark,

The entire error message is very big, and when I am pasting it on this forum in the reply, it is not allowed and pops up this message: "The body is limited to 35000 characters; you entered 223842."

Can you please share with me your email ID so I can send you the entire error message over it?

---

<div class="post-metadata">

### Author: ![ritesh811](https://avatars.discourse-cdn.com/v4/letter/r/3e96dc/32.png) [@ritesh811](https://discuss.elastic.co/u/ritesh811)
#### Post date: [June 29, 2022, 6:39am UTC](https://discuss.elastic.co/t/invalid-mapping-error-in-metricbeat-7-16-2/308264/4 "2022-06-29T06:39:18Z")

</div>

Can you please message me your email ID so I can send you the entire error message over it?

---

<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: [June 29, 2022, 9:09pm UTC](https://discuss.elastic.co/t/invalid-mapping-error-in-metricbeat-7-16-2/308264/5 "2022-06-29T21:09:45Z")

</div>

You can use gist/pastebin/etc and link us to it.

---

<div class="post-metadata">

### Author: ![ritesh811](https://avatars.discourse-cdn.com/v4/letter/r/3e96dc/32.png) [@ritesh811](https://discuss.elastic.co/u/ritesh811)
#### Post date: [July 1, 2022, 4:26am UTC](https://discuss.elastic.co/t/invalid-mapping-error-in-metricbeat-7-16-2/308264/6 "2022-07-01T04:26:00Z")

</div>

Hi Mark,

Please find the below link where I have kept the entire error message for your review. Please let me know where I am going wrong.

> **[invalid mapping definition - Pastebin.com](https://pastebin.com/D8R6hC4Q)**
>
> Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.

---

<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: [July 29, 2022, 6:26am UTC](https://discuss.elastic.co/t/invalid-mapping-error-in-metricbeat-7-16-2/308264/7 "2022-07-29T06:26:09Z")

</div>

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