I think I ran into a very big problem when I upgraded from ELK 5 to ELK 6. When I look at the Logstash template in ELK 5 I see a keyword mapping with .raw
. After the upgrade to ELK 6 the new template has a keyword mapping with .keyword
.
Two problems:
- All my Kibana visualizations rely on
.raw
. Is there an easy way to update that? - The much bigger problem is that I have tons of old indices with a
.raw
mapping. All new indices have.keyword
. How can I solves this problem?
This is my old mapping:
"string_fields": {
"mapping": {
"fielddata": {
"format": "disabled"
},
"index": "analyzed",
"omit_norms": true,
"type": "string",
"fields": {
"raw": {
"ignore_above": 256,
"index": "not_analyzed",
"type": "string"
}
}
},
"match_mapping_type": "string",
"match": "*"
}
This is the new mapping:
"string_fields": {
"match": "*",
"match_mapping_type": "string",
"mapping": {
"type": "text",
"norms": false,
"fields": {
"keyword": {
"type": "keyword"
}
}
}
}