Hi,
[Background]
I upgrade ES from 5.6 to 6.1.2 and the kibana version is 6.1.2 (All are docker with OSS distributed version).
For some reason, i would like to use a fresh new kibana installation, so i delete '.kibana' index, then relaunch kibana to let it create its own index from scratch.
[Problem]
-
I cannot "Create index pattern" on kibana. After click "create index pattern" button it return 400 error at "api/saved_objects/index-pattern".
-
After "problem 2", i try to create the ".kibana" index by my self. And I got error:
PUT /.kibana
{
"error": {
"root_cause": [
{
"type": "remote_transport_exception",
"reason": "[es-master-1][10.0.0.39:9300][indices:admin/create]"
}
],
"type": "illegal_argument_exception",
"reason": "Rejecting mapping update to [.kibana] as the final mapping would have more than 1 type: [log, doc]"
},
"status": 400
}
I found there is a template "kibana_index_template:.kibana" as below:
"kibana_index_template:.kibana": {
"order": 0,
"index_patterns": [
".kibana"
],
"settings": {
"index": {
"number_of_shards": "1"
}
},
"mappings": {
"doc": {
"dynamic": "strict",
"properties": {
"type": {
"type": "keyword"
},
"updated_at": {
"type": "date"
},
"config": {
"dynamic": true,
"properties": {
"buildNum": {
"type": "keyword"
}
... IGNORED ...
If I try to delete the template "kibana_index_template:.kibana", I will success to create ".kibana" index via PUT /.kibana
.
[Question]
I know there is breaking changes regard to ES 6.0 and the Removal of Mapping Types.
It seems the template created by kibana automatically is not change to the new mapping yet?
Thank you!