# Rejecting mapping update to \[logstash-2018.05.19\] as the final mapping would have more than 1 type

**URL:** <https://discuss.elastic.co/t/rejecting-mapping-update-to-logstash-2018-05-19-as-the-final-mapping-would-have-more-than-1-type/132555>\
**Category:** Elasticsearch\
**Created:** [May 19, 2018, 6:48am UTC](https://discuss.elastic.co/t/rejecting-mapping-update-to-logstash-2018-05-19-as-the-final-mapping-would-have-more-than-1-type/132555 "2018-05-19T06:48:05Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![f26227279](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/f26227279/32/21296_2.png) [@f26227279](https://discuss.elastic.co/u/f26227279)\
**Post date:** [May 19, 2018, 6:48am UTC](https://discuss.elastic.co/t/rejecting-mapping-update-to-logstash-2018-05-19-as-the-final-mapping-would-have-more-than-1-type/132555/1 "2018-05-19T06:48:05Z")

</div>

Hi, I have a problem that when I mapping the type, and it always told me that I have more than 1 type.  
my ES is 6.2.4 version.  
this is my mapping API:

```
PUT _template/logstash
{
  "index_patterns": ["logstash-*"],
  "settings": {
    "number_of_shards": 5
  },
  "mappings": {
    "doc": {
      "_source": {
        "enabled": true
      },
      "properties": {
        "IPV4_SRC_ADDR": { "type": "ip"},
        "IPV4_DST_ADDR": { "type": "ip"},
        "PROTOCOL": { "type": "integer"}
      }
    }
  }
}

```

logstash.conf:

```
input{
        tcp{
                host => "163.19.X.XX"
                port => 5510
                codec => json

        }
}
filter{
}
output{
elasticsearch {
                codec => "json"
                hosts => ["163.19.X.XX:9200","163.19.X.XX:9200","163.19.X.XX:9200"]
        }

        # stdout{codec=> rubydebug}

}

```

elasticsearch log:

```
[2018-05-19T22:37:11,511][DEBUG][o.e.a.a.i.m.p.TransportPutMappingAction] [ES4] failed to put mappings on indices [[[logstash-2018.05.19/_r8EAZmHSGqFqZHGMkbi9A]]], type [ntopng-*]
    java.lang.IllegalArgumentException: Rejecting mapping update to [logstash-2018.05.19] as the final mapping would have more than 1 type: [ntopng-*, doc]
    	at org.elasticsearch.index.mapper.MapperService.internalMerge(MapperService.java:501) ~[elasticsearch-6.2.4.jar:6.2.4]
    	at org.elasticsearch.index.mapper.MapperService.internalMerge(MapperService.java:353) ~[elasticsearch-6.2.4.jar:6.2.4]
    	at org.elasticsearch.index.mapper.MapperService.merge(MapperService.java:285) ~[elasticsearch-6.2.4.jar:6.2.4]
    	at org.elasticsearch.cluster.metadata.MetaDataMappingService$PutMappingExecutor.applyRequest(MetaDataMappingService.java:313) ~[elasticsearch-6.2.4.jar:6.2.4]
    	at org.elasticsearch.cluster.metadata.MetaDataMappingService$PutMappingExecutor.execute(MetaDataMappingService.java:230) ~[elasticsearch-6.2.4.jar:6.2.4]
    	at org.elasticsearch.cluster.service.MasterService.executeTasks(MasterService.java:643) ~[elasticsearch-6.2.4.jar:6.2.4]
    	at org.elasticsearch.cluster.service.MasterService.calculateTaskOutputs(MasterService.java:273) ~[elasticsearch-6.2.4.jar:6.2.4]
    	at org.elasticsearch.cluster.service.MasterService.runTasks(MasterService.java:198) [elasticsearch-6.2.4.jar:6.2.4]
    	at org.elasticsearch.cluster.service.MasterService$Batcher.run(MasterService.java:133) [elasticsearch-6.2.4.jar:6.2.4]
    	at org.elasticsearch.cluster.service.TaskBatcher.runIfNotProcessed(TaskBatcher.java:150) [elasticsearch-6.2.4.jar:6.2.4]
    	at org.elasticsearch.cluster.service.TaskBatcher$BatchedTask.run(TaskBatcher.java:188) [elasticsearch-6.2.4.jar:6.2.4]
    	at org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingRunnable.run(ThreadContext.java:573) [elasticsearch-6.2.4.jar:6.2.4]
    	at org.elasticsearch.common.util.concurrent.PrioritizedEsThreadPoolExecutor$TieBreakingPrioritizedRunnable.runAndClean(PrioritizedEsThreadPoolExecutor.java:244) [elasticsearch-6.2.4.jar:6.2.4]
    	at org.elasticsearch.common.util.concurrent.PrioritizedEsThreadPoolExecutor$TieBreakingPrioritizedRunnable.run(PrioritizedEsThreadPoolExecutor.java:207) [elasticsearch-6.2.4.jar:6.2.4]
    	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [?:1.8.0_131]
    	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [?:1.8.0_131]
    	at java.lang.Thread.run(Thread.java:748) [?:1.8.0_131]
    [2018-05-19T22:37:11,511][DEBUG][o.e.a.a.i.m.p.TransportPutMappingAction] [ES4] failed to put mappings on indices [[[logstash-2018.05.19/_r8EAZmHSGqFqZHGMkbi9A]]], type [ntopng-*]
    java.lang.IllegalArgumentException: Rejecting mapping update to [logstash-2018.05.19] as the final mapping would have more than 1 type: [ntopng-*, doc]
    	at org.elasticsearch.index.mapper.MapperService.internalMerge(MapperService.java:501) ~[elasticsearch-6.2.4.jar:6.2.4]

```

thank you in advance !  
I have spent a lot of time on it.

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [May 19, 2018, 8:17am UTC](https://discuss.elastic.co/t/rejecting-mapping-update-to-logstash-2018-05-19-as-the-final-mapping-would-have-more-than-1-type/132555/2 "2018-05-19T08:17:52Z")

</div>

Check if you have other templates.

---

<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 16, 2018, 8:18am UTC](https://discuss.elastic.co/t/rejecting-mapping-update-to-logstash-2018-05-19-as-the-final-mapping-would-have-more-than-1-type/132555/3 "2018-06-16T08:18:08Z")

</div>

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