# Java.lang.IllegalArgumentException: Mapper for \[@timestamp\] conflicts with existing mapping in other types:

**URL:** <https://discuss.elastic.co/t/java-lang-illegalargumentexception-mapper-for-timestamp-conflicts-with-existing-mapping-in-other-types/49532>\
**Category:** Elasticsearch\
**Created:** [May 9, 2016, 9:50am UTC](https://discuss.elastic.co/t/java-lang-illegalargumentexception-mapper-for-timestamp-conflicts-with-existing-mapping-in-other-types/49532 "2016-05-09T09:50:22Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![sdarbha](https://avatars.discourse-cdn.com/v4/letter/s/e68b1a/32.png) [@sdarbha](https://discuss.elastic.co/u/sdarbha)\
**Post date:** [May 9, 2016, 9:50am UTC](https://discuss.elastic.co/t/java-lang-illegalargumentexception-mapper-for-timestamp-conflicts-with-existing-mapping-in-other-types/49532/1 "2016-05-09T09:50:22Z")

</div>

Hello,

I am using elasticsearch 2.1.1 version with kibana 4.3.1. I am seeing the below error after the upgrade from 1.x to 2.x. we are currently using logstash to ingest logs into elasticsearch. How to set update\_all\_types to true when we have timestamped indexes created with logstash.

java.lang.IllegalArgumentException: Mapper for [@timestamp] conflicts with existing mapping in other types:  
[mapper [@timestamp] is used by multiple types. Set update\_all\_types to true to update [format] across all types.]  
at org.elasticsearch.index.mapper.FieldTypeLookup.checkCompatibility(FieldTypeLookup.java:117)  
at org.elasticsearch.index.mapper.MapperService.checkNewMappersCompatibility(MapperService.java:368)  
at org.elasticsearch.index.mapper.MapperService.merge(MapperService.java:319)  
at org.elasticsearch.index.mapper.MapperService.merge(MapperService.java:265)  
at org.elasticsearch.cluster.metadata.MetaDataMappingService$2.execute(MetaDataMappingService.java:444)  
at org.elasticsearch.cluster.service.InternalClusterService$UpdateTask.run(InternalClusterService.java:388)  
at org.elasticsearch.common.util.concurrent.PrioritizedEsThreadPoolExecutor$TieBreakingPrioritizedRunnable.runAndClean(PrioritizedEsThreadPool  
Executor.java:231)  
at org.elasticsearch.common.util.concurrent.PrioritizedEsThreadPoolExecutor$TieBreakingPrioritizedRunnable.run(PrioritizedEsThreadPoolExecutor  
.java:194)  
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)  
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)  
at java.lang.Thread.run(Thread.java:745)

---

<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:** [May 10, 2016, 7:12am UTC](https://discuss.elastic.co/t/java-lang-illegalargumentexception-mapper-for-timestamp-conflicts-with-existing-mapping-in-other-types/49532/2 "2016-05-10T07:12:17Z")

</div>

[https://www.elastic.co/guide/en/elasticsearch/reference/2.3/indices-put-mapping.html#merging-conflicts](https://www.elastic.co/guide/en/elasticsearch/reference/2.3/indices-put-mapping.html#merging-conflicts)  
The docs are your friend 🙂

---

<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 5, 2017, 10:52pm UTC](https://discuss.elastic.co/t/java-lang-illegalargumentexception-mapper-for-timestamp-conflicts-with-existing-mapping-in-other-types/49532/3 "2017-07-05T22:52:52Z")

</div>


