# Debug the message "Rejecting mapping update..."

**URL:** <https://discuss.elastic.co/t/debug-the-message-rejecting-mapping-update/126437>\
**Category:** Elasticsearch\
**Created:** [April 2, 2018, 2:29pm UTC](https://discuss.elastic.co/t/debug-the-message-rejecting-mapping-update/126437 "2018-04-02T14:29:13Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![pkaramol](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pkaramol/32/22610_2.png) [@pkaramol](https://discuss.elastic.co/u/pkaramol)\
**Post date:** [April 2, 2018, 2:29pm UTC](https://discuss.elastic.co/t/debug-the-message-rejecting-mapping-update/126437/1 "2018-04-02T14:29:13Z")

</div>

I am using a template index which has the following entry:

`"index_patterns": "myindexpattern-*",`

and also ...

```
  "mappings": {
    "_doc": {
      "dynamic" : "strict",
      "properties": {...

```

and also outputting some data to ES as follows:

```
  elasticsearch {
    hosts => ["my-es-host"]
    index => "myindexpattern-%{+YYYY.MM.dd}"
    template => "/usr/share/logstash/files/my_template.json"
    template_name => "my-template"
    manage_template => true
    template_overwrite => true
  }

```

I am getting the following error:

`logstash_1 | [2018-04-02T14:21:09,373][WARN][logstash.outputs.elasticsearch] Could not index event to Elasticsearch. {:status=>400, :action=>["index", {:_id=>nil, :_index=>"myindexpattern-500-2015.06.20", :_type=>"doc", :_routing=>nil}, #<LogStash::Event:0x320a0860>], :response=>{"index"=>{"_index"=>"myindexpattern-500-2015.06.20", "_type"=>"doc", "_id"=>"IP67hmIBYgQuLfB3mDzK", "status"=>400, "error"=>{"type"=>"illegal_argument_exception", "reason"=>"Rejecting mapping update to [some-name-500-2015.06.20] as the final mapping would have more than 1 type: [_doc, doc]"}}}}`

How can I check what is the field causing the problem?

---

<div class="post-metadata">

**Author:** ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)\
**Post date:** [April 2, 2018, 4:31pm UTC](https://discuss.elastic.co/t/debug-the-message-rejecting-mapping-update/126437/2 "2018-04-02T16:31:17Z")

</div>

> [@pkaramol](#):
>
> "mappings": {  
> "\_doc": {

If you change \_doc to doc does the problem go away? (You will need to delete the current day index before trying that.)

---

<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 30, 2018, 4:31pm UTC](https://discuss.elastic.co/t/debug-the-message-rejecting-mapping-update/126437/3 "2018-04-30T16:31:41Z")

</div>

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