8c489009c2
Elasticsearch 6.x dropped support for mapping types[1], which by default the Kibana index used. This means that when deploying ELK 6.x, the Kibana index must be migrated to the new schema to preserve dashboards and visualizations. There is a process defined[2], which involves creating a new index with the specified schema, then reindexing the old index's data into the new index, then doing a rename/delete. This adds support for that workflow via Ansible. It takes place after the ES container is restarted after an upgrade, so there will be a (short) period of time where the Kibana index is not migrated. During this time, Kibana still loads, but presents the user with a status screen informing that the index needs migration. [1]: https://www.elastic.co/guide/en/elasticsearch/reference/6.x/removal-of-types.html [2]: https://www.elastic.co/guide/en/kibana/6.x/migrating-6.0-index.html Implements: blueprint elasticsearch-kibana-version-upgrade Depends-On: https://review.opendev.org/709624 Change-Id: I4550629e2113f3da7f1cecfeab0d5fe0d899dae8
265 lines
6.0 KiB
JSON
265 lines
6.0 KiB
JSON
{
|
|
"settings" : {
|
|
"number_of_shards" : 1,
|
|
"index.mapper.dynamic": false
|
|
},
|
|
"mappings" : {
|
|
"doc": {
|
|
"properties": {
|
|
"type": {
|
|
"type": "keyword"
|
|
},
|
|
"updated_at": {
|
|
"type": "date"
|
|
},
|
|
"config": {
|
|
"properties": {
|
|
"buildNum": {
|
|
"type": "keyword"
|
|
}
|
|
}
|
|
},
|
|
"index-pattern": {
|
|
"properties": {
|
|
"fieldFormatMap": {
|
|
"type": "text"
|
|
},
|
|
"fields": {
|
|
"type": "text"
|
|
},
|
|
"intervalName": {
|
|
"type": "keyword"
|
|
},
|
|
"notExpandable": {
|
|
"type": "boolean"
|
|
},
|
|
"sourceFilters": {
|
|
"type": "text"
|
|
},
|
|
"timeFieldName": {
|
|
"type": "keyword"
|
|
},
|
|
"title": {
|
|
"type": "text"
|
|
}
|
|
}
|
|
},
|
|
"visualization": {
|
|
"properties": {
|
|
"description": {
|
|
"type": "text"
|
|
},
|
|
"kibanaSavedObjectMeta": {
|
|
"properties": {
|
|
"searchSourceJSON": {
|
|
"type": "text"
|
|
}
|
|
}
|
|
},
|
|
"savedSearchId": {
|
|
"type": "keyword"
|
|
},
|
|
"title": {
|
|
"type": "text"
|
|
},
|
|
"uiStateJSON": {
|
|
"type": "text"
|
|
},
|
|
"version": {
|
|
"type": "integer"
|
|
},
|
|
"visState": {
|
|
"type": "text"
|
|
}
|
|
}
|
|
},
|
|
"search": {
|
|
"properties": {
|
|
"columns": {
|
|
"type": "keyword"
|
|
},
|
|
"description": {
|
|
"type": "text"
|
|
},
|
|
"hits": {
|
|
"type": "integer"
|
|
},
|
|
"kibanaSavedObjectMeta": {
|
|
"properties": {
|
|
"searchSourceJSON": {
|
|
"type": "text"
|
|
}
|
|
}
|
|
},
|
|
"sort": {
|
|
"type": "keyword"
|
|
},
|
|
"title": {
|
|
"type": "text"
|
|
},
|
|
"version": {
|
|
"type": "integer"
|
|
}
|
|
}
|
|
},
|
|
"dashboard": {
|
|
"properties": {
|
|
"description": {
|
|
"type": "text"
|
|
},
|
|
"hits": {
|
|
"type": "integer"
|
|
},
|
|
"kibanaSavedObjectMeta": {
|
|
"properties": {
|
|
"searchSourceJSON": {
|
|
"type": "text"
|
|
}
|
|
}
|
|
},
|
|
"optionsJSON": {
|
|
"type": "text"
|
|
},
|
|
"panelsJSON": {
|
|
"type": "text"
|
|
},
|
|
"refreshInterval": {
|
|
"properties": {
|
|
"display": {
|
|
"type": "keyword"
|
|
},
|
|
"pause": {
|
|
"type": "boolean"
|
|
},
|
|
"section": {
|
|
"type": "integer"
|
|
},
|
|
"value": {
|
|
"type": "integer"
|
|
}
|
|
}
|
|
},
|
|
"timeFrom": {
|
|
"type": "keyword"
|
|
},
|
|
"timeRestore": {
|
|
"type": "boolean"
|
|
},
|
|
"timeTo": {
|
|
"type": "keyword"
|
|
},
|
|
"title": {
|
|
"type": "text"
|
|
},
|
|
"uiStateJSON": {
|
|
"type": "text"
|
|
},
|
|
"version": {
|
|
"type": "integer"
|
|
}
|
|
}
|
|
},
|
|
"url": {
|
|
"properties": {
|
|
"accessCount": {
|
|
"type": "long"
|
|
},
|
|
"accessDate": {
|
|
"type": "date"
|
|
},
|
|
"createDate": {
|
|
"type": "date"
|
|
},
|
|
"url": {
|
|
"type": "text",
|
|
"fields": {
|
|
"keyword": {
|
|
"type": "keyword",
|
|
"ignore_above": 2048
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"server": {
|
|
"properties": {
|
|
"uuid": {
|
|
"type": "keyword"
|
|
}
|
|
}
|
|
},
|
|
"timelion-sheet": {
|
|
"properties": {
|
|
"description": {
|
|
"type": "text"
|
|
},
|
|
"hits": {
|
|
"type": "integer"
|
|
},
|
|
"kibanaSavedObjectMeta": {
|
|
"properties": {
|
|
"searchSourceJSON": {
|
|
"type": "text"
|
|
}
|
|
}
|
|
},
|
|
"timelion_chart_height": {
|
|
"type": "integer"
|
|
},
|
|
"timelion_columns": {
|
|
"type": "integer"
|
|
},
|
|
"timelion_interval": {
|
|
"type": "keyword"
|
|
},
|
|
"timelion_other_interval": {
|
|
"type": "keyword"
|
|
},
|
|
"timelion_rows": {
|
|
"type": "integer"
|
|
},
|
|
"timelion_sheet": {
|
|
"type": "text"
|
|
},
|
|
"title": {
|
|
"type": "text"
|
|
},
|
|
"version": {
|
|
"type": "integer"
|
|
}
|
|
}
|
|
},
|
|
"graph-workspace": {
|
|
"properties": {
|
|
"description": {
|
|
"type": "text"
|
|
},
|
|
"kibanaSavedObjectMeta": {
|
|
"properties": {
|
|
"searchSourceJSON": {
|
|
"type": "text"
|
|
}
|
|
}
|
|
},
|
|
"numLinks": {
|
|
"type": "integer"
|
|
},
|
|
"numVertices": {
|
|
"type": "integer"
|
|
},
|
|
"title": {
|
|
"type": "text"
|
|
},
|
|
"version": {
|
|
"type": "integer"
|
|
},
|
|
"wsState": {
|
|
"type": "text"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|