# Elastic search failed to put mappings on indices

**URL:** <https://discuss.elastic.co/t/elastic-search-failed-to-put-mappings-on-indices/124925>\
**Category:** Elasticsearch\
**Created:** [March 21, 2018, 8:02am UTC](https://discuss.elastic.co/t/elastic-search-failed-to-put-mappings-on-indices/124925 "2018-03-21T08:02:48Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![sri535](https://avatars.discourse-cdn.com/v4/letter/s/779978/32.png) [@sri535](https://discuss.elastic.co/u/sri535)\
**Post date:** [March 21, 2018, 8:02am UTC](https://discuss.elastic.co/t/elastic-search-failed-to-put-mappings-on-indices/124925/1 "2018-03-21T08:02:48Z")

</div>

HI,  
In latest version for newly adding indices its failing to map indices and giving below error  
[2018-03-21T00:06:29,854][DEBUG][o.e.a.a.i.m.p.TransportPutMappingAction] [W\_PbdUQ] failed to put mappings on indices [[[mshealthchk-2018.03.21/sgyPprfOQCOIbLbmuhXS4A]]], type [doc]  
java.lang.IllegalArgumentException: Rejecting mapping update to [mshealthchk-2018.03.21] as the final mapping would have more than 1 type: [\_doc, doc]

even i rechecked my logstash template too its every thing perfect but not able to map indices

---

<div class="post-metadata">

**Author:** ![tudor](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tudor/32/3753_2.png) [@tudor](https://discuss.elastic.co/u/tudor)\
**Post date:** [March 22, 2018, 1:45pm UTC](https://discuss.elastic.co/t/elastic-search-failed-to-put-mappings-on-indices/124925/2 "2018-03-22T13:45:10Z")

</div>

What version of Elasticsearch and Logstash do you use? Starting with 6.0, ES is raising errors if there is more than one type in use, see [this doc](https://www.elastic.co/guide/en/elasticsearch/reference/master/removal-of-types.html) for details. Do you have anything else but Logstash writing to that index?

---

<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 19, 2018, 1:45pm UTC](https://discuss.elastic.co/t/elastic-search-failed-to-put-mappings-on-indices/124925/3 "2018-04-19T13:45:20Z")

</div>

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