Conflicting field mappings


#1

We're trying to upgrade from ELK 1.7.1 to 2.3
However until we fixed the conflict field mapping on the .kibana index, we cannot move forward with the upgrade.
Error from the Migration Checker:
Conflicting field mappings:
Mapping for field dashboard:hits conflicts with: search:hits. Check parameter: type
"dashboard" : {
"properties" : {
"description" : {
"type" : "string"
},
"hits" : {
"type" : "long"
},
"search" : {
"properties" : {
"columns" : {
"type" : "string"
},
"description" : {
"type" : "string"
},
"hits" : {
"type" : "integer"
},

I am not sure how to fix this, please help


(Shaunak Kashyap) #2

Hi, it looks like you are running into this similar issue: Java.lang.IllegalArgumentException: Mapper for [hits] conflicts with existing mapping in other types

Please try Jon's suggestion in this comment: Java.lang.IllegalArgumentException: Mapper for [hits] conflicts with existing mapping in other types


#3

I am not getting any exception as noted on your comments. Users can access Kibana UI without any issue.
My problem is related to this link below
https://www.elastic.co/guide/en/elasticsearch/reference/2.0/breaking_20_mapping_changes.html#_conflicting_field_mappings
It says that .kibana index must be deleted and re-index, how can I do this without losing all the objects that users have created in Kibana?
The whole company uses it.
Please help


(Mark Walkom) #4

You may need to export all your objects, then reimport them.


#5

Hi warkolm, can you please provide an example on how to export and reimport the objects.

Greatly appreciated.


(Mark Walkom) #6

Have a look at https://www.elastic.co/guide/en/kibana/current/managing-saved-objects.html


#7

Hi Mark
I tried to recreate this problem in our QA environment with 1 logstash, 1 Kibana & 3 Elasticsearch servers. The .kibana mapping has the same settings but when I ran the Migration checker it did not show any conflict as in production environment. I am not sure how to address this, please help.
In production the message was " Mapping for field dashboard:hits conflicts with: search:hits. Check parameter: type "

"dashboard" : {
"properties" : {
"description" : {
"type" : "string"
},
"hits" : {
"type" : "integer"

"search" : {
"properties" : {
"columns" : {
"type" : "string"
},
"description" : {
"type" : "string"
},
"hits" : {
"type" : "integer"


(Mark Walkom) #8

Did you export them and then reimport them as suggested?


#9

Yes, I did Mark, still the same problem


(system) #10