En este POST veremos como solucionar este problema al iniciar Kibana, para solventarel problema creé un nuevo indice vació y mapee el antiguo al nuevo creado.
Al realizar un status del servicio podemos ver los siguientes errores:
May 24 11:29:01 kibana kibana[5107]: ason\":\"all shards failed\",\"phase\":\"query\",\"grouped\":true,\"failed_shards\":[]},\"status\":503}',\n toStrin
May 24 11:29:01 kibana kibana[5107]: FATAL [search_phase_execution_exception] all shards failed :: {"path":"/.kibana/doc/_count","query":{},"body":"{\
Creamos el indice
curl -XPUT 'http://localhost:9200/.kibana-6.7.2' -d'
{
"mappings": {
"_default_": {
"dynamic": "strict"
},
"config": {
"properties": {
"buildNum": {
"type": "keyword"
}
},
"dynamic": "true"
},
"timelion-sheet": {
"properties": {
"version": {
"type": "integer"
},
"title": {
"type": "text"
},
"timelion_sheet": {
"type": "text"
},
"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"
}
},
"dynamic": "strict"
},
"visualization": {
"properties": {
"visState": {
"type": "text"
},
"version": {
"type": "integer"
},
"uiStateJSON": {
"type": "text"
},
"title": {
"type": "text"
},
"savedSearchId": {
"type": "keyword"
},
"kibanaSavedObjectMeta": {
"properties": {
"searchSourceJSON": {
"type": "text"
}
}
},
"description": {
"type": "text"
}
},
"dynamic": "strict"
},
"index-pattern": {
"properties": {
"title": {
"type": "text"
},
"timeFieldName": {
"type": "keyword"
},
"sourceFilters": {
"type": "text"
},
"notExpandable": {
"type": "boolean"
},
"intervalName": {
"type": "keyword"
},
"fields": {
"type": "text"
},
"fieldFormatMap": {
"type": "text"
}
},
"dynamic": "strict"
},
"dashboard": {
"properties": {
"version": {
"type": "integer"
},
"uiStateJSON": {
"type": "text"
},
"title": {
"type": "text"
},
"timeTo": {
"type": "keyword"
},
"description": {
"type": "text"
},
"hits": {
"type": "integer"
},
"kibanaSavedObjectMeta": {
"properties": {
"searchSourceJSON": {
"type": "text"
}
}
},
"optionsJSON": {
"type": "text"
},
"panelsJSON": {
"type": "text"
},
"refreshInterval": {
"properties": {
"value": {
"type": "integer"
},
"section": {
"type": "integer"
},
"pause": {
"type": "boolean"
},
"display": {
"type": "keyword"
}
}
},
"timeFrom": {
"type": "keyword"
},
"timeRestore": {
"type": "boolean"
}
},
"dynamic": "strict"
},
"url": {
"properties": {
"url": {
"fields": {
"keyword": {
"ignore_above": 2048,
"type": "keyword"
}
},
"type": "text"
},
"createDate": {
"type": "date"
},
"accessDate": {
"type": "date"
},
"accessCount": {
"type": "long"
}
},
"dynamic": "strict"
},
"server": {
"properties": {
"uuid": {
"type": "keyword"
}
},
"dynamic": "strict"
},
"search": {
"properties": {
"version": {
"type": "integer"
},
"title": {
"type": "text"
},
"sort": {
"type": "keyword"
},
"kibanaSavedObjectMeta": {
"properties": {
"searchSourceJSON": {
"type": "text"
}
}
},
"hits": {
"type": "integer"
},
"description": {
"type": "text"
},
"columns": {
"type": "keyword"
}
},
"dynamic": "strict"
}
}
}'
mapeo el antiguo index al nuevo creado
curl -XPOST 'https://localhost:9200/_reindex' -d'
{
"source": {
"index": ".kibana"
},
"dest": {
"index": ".kibana-6.7.2"
}
}'
Editamos la configuración de Kibana y agregamos el nuevo index generado
kibana.index: «.kibana-6.7.2»
Por ultimo, reinciamos el servicio
systemctl restart kibana
:wq!