# Metricbeat having issue with auto create mapping

**URL:** <https://discuss.elastic.co/t/metricbeat-having-issue-with-auto-create-mapping/81494>\
**Category:** Beats\
**Created:** [April 6, 2017, 3:30pm UTC](https://discuss.elastic.co/t/metricbeat-having-issue-with-auto-create-mapping/81494 "2017-04-06T15:30:10Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![jclose](https://avatars.discourse-cdn.com/v4/letter/j/df705f/32.png) [@jclose](https://discuss.elastic.co/u/jclose)\
**Post date:** [April 6, 2017, 3:30pm UTC](https://discuss.elastic.co/t/metricbeat-having-issue-with-auto-create-mapping/81494/1 "2017-04-06T15:30:10Z")

</div>

I have tried to get metricbeat started on one of our boxes, and I am getting the following error (continuously):

`2017-04-06T10:24:44-05:00 WARN Can not index event (status=404): {"type":"type_missing_exception","reason":"type[metricsets] missing","index_uuid":"lbQzxO_UQFedybyPVlcskg","index":"metricbeat-2017.04.06","caused_by":{"type":"illegal_state_exception","reason":"trying to auto create mapping, but dynamic mapping is disabled"}}`

Here is the result of the following curl call:

> curl -XGET 10.1.1.1:9200/\_template/template\_all?pretty=true  
> {  
> "template\_all" : {  
> "order" : 0,  
> "template" : "\*",  
> "settings" : {  
> "index" : {  
> "mapper" : {  
> "dynamic" : "true"  
> }  
> }  
> },  
> "mappings" : { },  
> "aliases" : { }  
> }  
> }

I don't quite understand what I need to change so that metricbeat can create the indexes required.

---

<div class="post-metadata">

**Author:** ![jclose](https://avatars.discourse-cdn.com/v4/letter/j/df705f/32.png) [@jclose](https://discuss.elastic.co/u/jclose)\
**Post date:** [April 6, 2017, 6:20pm UTC](https://discuss.elastic.co/t/metricbeat-having-issue-with-auto-create-mapping/81494/2 "2017-04-06T18:20:41Z")

</div>

So I got this to work.

I had to go through and delete all of the existing metricbeat indices. When I did that, it seemed to pick up the new template correctly.

---

<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:** [April 8, 2017, 11:21pm UTC](https://discuss.elastic.co/t/metricbeat-having-issue-with-auto-create-mapping/81494/3 "2017-04-08T23:21:22Z")

</div>

Thanks for sharing your solution!

---

<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:** [April 27, 2017, 3:30pm UTC](https://discuss.elastic.co/t/metricbeat-having-issue-with-auto-create-mapping/81494/4 "2017-04-27T15:30:28Z")

</div>

This topic was automatically closed after 21 days. New replies are no longer allowed.
