启动kibana 遇到报错信息:
Administrators should consult the Kibana logs for more details.
方式1:如果ES集群启用了用户名和密码认证
则配置kibana.yml
elasticsearch.username: "name"
elasticsearch.password: "password"
方式2:设置elasticsearch.customHeaders,其中authorization是通过 username,password加密生成(技巧,可以用postman,输入用户名和密码生成)
elasticsearch.customHeaders: {"Authorization":"Basic xxxxxxxxxx"}
方式3 禁用x-pach插件
./bin/kibana --x-pach.enabled=false
方式4 下载oss版本,不包含x-pack版本
下载地址:https://artifacts.elastic.co/downloads/kibana/kibana-oss-6.3.2-windows-x86_64.zip
kibana链接Elasticsearch后会自动生成.kibana索引,如果没有自己创建索引的全新,可以手动创建索引
1..kibana索引(以6.3.2为例)
{
"settings": {
"index": {
"number_of_shards": "1",
"number_of_replicas": "0"
}
},
"mappings": {
"_doc": {
"dynamic": "strict",
"properties": {
"ml-telemetry": {
"properties": {
"file_data_visualizer": {
"properties": {
"index_creation_count": {
"type": "long"
}
}
}
}
},
"server": {
"properties": {
"uuid": {
"type": "keyword"
}
}
},
"visualization": {
"properties": {
"savedSearchRefName": {
"type": "keyword"
},
"description": {
"type": "text"
},
"uiStateJSON": {
"type": "text"
},
"title": {
"type": "text"
},
"version": {
"type": "integer"
},
"kibanaSavedObjectMeta": {
"properties": {
"searchSourceJSON": {
"type": "text"
}
}
},
"visState": {
"type": "text"
}
}
},
"graph-workspace": {
"properties": {
"numVertices": {
"type": "integer"
},
"description": {
"type": "text"
},
"numLinks": {
"type": "integer"
},
"title": {
"type": "text"
},
"version": {
"type": "integer"
},
"kibanaSavedObjectMeta": {
"properties": {
"searchSourceJSON": {
"type": "text"
}
}
},
"wsState": {
"type": "text"
}
}
},
"references": {
"type": "nested",
"properties": {
"name": {
"type": "keyword"
},
"id": {
"type": "keyword"
},
"type": {
"type": "keyword"
}
}
},
"type": {
"type": "keyword"
},
"infrastructure-ui-source": {
"properties": {
"logAlias": {
"type": "keyword"
},
"metricAlias": {
"type": "keyword"
},
"name": {
"type": "text"
},
"description": {
"type": "text"
},
"fields": {
"properties": {
"container": {
"type": "keyword"
},
"pod": {
"type": "keyword"
},
"host": {
"type": "keyword"
},
"tiebreaker": {
"type": "keyword"
},
"timestamp": {
"type": "keyword"
}
}
}
}
},
"space": {
"properties": {
"color": {
"type": "keyword"
},
"_reserved": {
"type": "boolean"
},
"initials": {
"type": "keyword"
},
"name": {
"type": "text",
"fields": {
"keyword": {
"ignore_above": 2048,
"type": "keyword"
}
}
},
"description": {
"type": "text"
}
}
},
"search": {
"properties": {
"hits": {
"type": "integer"
},
"columns": {
"type": "keyword"
},
"description": {
"type": "text"
},
"sort": {
"type": "keyword"
},
"title": {
"type": "text"
},
"version": {
"type": "integer"
},
"kibanaSavedObjectMeta": {
"properties": {
"searchSourceJSON": {
"type": "text"
}
}
}
}
},
"updated_at": {
"type": "date"
},
"canvas-workpad": {
"dynamic": "false",
"properties": {
"@created": {
"type": "date"
},
"@timestamp": {
"type": "date"
},
"name": {
"type": "text",
"fields": {
"keyword": {
"type": "keyword"
}
}
}
}
},
"map": {
"properties": {
"bounds": {
"type": "geo_shape"
},
"mapStateJSON": {
"type": "text"
},
"description": {
"type": "text"
},
"layerListJSON": {
"type": "text"
},
"uiStateJSON": {
"type": "text"
},
"title": {
"type": "text"
},
"version": {
"type": "integer"
}
}
},
"dashboard": {
"properties": {
"hits": {
"type": "integer"
},
"timeFrom": {
"type": "keyword"
},
"timeTo": {
"type": "keyword"
},
"refreshInterval": {
"properties": {
"display": {
"type": "keyword"
},
"section": {
"type": "integer"
},
"value": {
"type": "integer"
},
"pause": {
"type": "boolean"
}
}
},
"description": {
"type": "text"
},
"uiStateJSON": {
"type": "text"
},
"timeRestore": {
"type": "boolean"
},
"title": {
"type": "text"
},
"version": {
"type": "integer"
},
"kibanaSavedObjectMeta": {
"properties": {
"searchSourceJSON": {
"type": "text"
}
}
},
"optionsJSON": {
"type": "text"
},
"panelsJSON": {
"type": "text"
}
}
},
"apm-telemetry": {
"properties": {
"has_any_services": {
"type": "boolean"
},
"services_per_agent": {
"properties": {
"python": {
"null_value": 0,
"type": "long"
},
"java": {
"null_value": 0,
"type": "long"
},
"go": {
"null_value": 0,
"type": "long"
},
"nodejs": {
"null_value": 0,
"type": "long"
},
"js-base": {
"null_value": 0,
"type": "long"
},
"ruby": {
"null_value": 0,
"type": "long"
}
}
}
}
},
"kql-telemetry": {
"properties": {
"optInCount": {
"type": "long"
},
"optOutCount": {
"type": "long"
}
}
},
"url": {
"properties": {
"accessCount": {
"type": "long"
},
"accessDate": {
"type": "date"
},
"url": {
"type": "text",
"fields": {
"keyword": {
"ignore_above": 2048,
"type": "keyword"
}
}
},
"createDate": {
"type": "date"
}
}
},
"migrationVersion": {
"dynamic": "true",
"type": "object"
},
"index-pattern": {
"properties": {
"notExpandable": {
"type": "boolean"
},
"fieldFormatMap": {
"type": "text"
},
"sourceFilters": {
"type": "text"
},
"typeMeta": {
"type": "keyword"
},
"timeFieldName": {
"type": "keyword"
},
"intervalName": {
"type": "keyword"
},
"fields": {
"type": "text"
},
"title": {
"type": "text"
},
"type": {
"type": "keyword"
}
}
},
"upgrade-assistant-reindex-operation": {
"dynamic": "true",
"properties": {
"indexName": {
"type": "keyword"
},
"status": {
"type": "integer"
}
}
},
"maps-telemetry": {
"properties": {
"mapsTotalCount": {
"type": "long"
},
"attributesPerMap": {
"properties": {
"emsVectorLayersCount": {
"dynamic": "true",
"type": "object"
},
"layerTypesCount": {
"dynamic": "true",
"type": "object"
},
"dataSourcesCount": {
"properties": {
"avg": {
"type": "long"
},
"min": {
"type": "long"
},
"max": {
"type": "long"
}
}
},
"layersCount": {
"properties": {
"avg": {
"type": "long"
},
"min": {
"type": "long"
},
"max": {
"type": "long"
}
}
}
}
},
"timeCaptured": {
"type": "date"
}
}
},
"namespace": {
"type": "keyword"
},
"telemetry": {
"properties": {
"enabled": {
"type": "boolean"
}
}
},
"timelion-sheet": {
"properties": {
"hits": {
"type": "integer"
},
"timelion_sheet": {
"type": "text"
},
"timelion_interval": {
"type": "keyword"
},
"timelion_columns": {
"type": "integer"
},
"timelion_other_interval": {
"type": "keyword"
},
"timelion_rows": {
"type": "integer"
},
"description": {
"type": "text"
},
"title": {
"type": "text"
},
"version": {
"type": "integer"
},
"kibanaSavedObjectMeta": {
"properties": {
"searchSourceJSON": {
"type": "text"
}
}
},
"timelion_chart_height": {
"type": "integer"
}
}
},
"config": {
"dynamic": "true",
"properties": {
"buildNum": {
"type": "keyword"
}
}
},
"upgrade-assistant-telemetry": {
"properties": {
"features": {
"properties": {
"deprecation_logging": {
"properties": {
"enabled": {
"null_value": true,
"type": "boolean"
}
}
}
}
},
"ui_open": {
"properties": {
"cluster": {
"null_value": 0,
"type": "long"
},
"overview": {
"null_value": 0,
"type": "long"
},
"indices": {
"null_value": 0,
"type": "long"
}
}
},
"ui_reindex": {
"properties": {
"stop": {
"null_value": 0,
"type": "long"
},
"start": {
"null_value": 0,
"type": "long"
},
"close": {
"null_value": 0,
"type": "long"
},
"open": {
"null_value": 0,
"type": "long"
}
}
}
}
}
}
}
}
}
2. 插入相关数据
PUT .kibana/doc/config:6.3.2
{
"type": "config",
"updated_at": "2020-05-12T13:29:58.295Z",
"config": {
"buildNum": 17307,
"telemetry:optIn": false
}
}
3.重启kibana链接ES即可
参考链接
https://discuss.elastic.co/t/kibana-6-1-login-is-currently-disabled-administrators-should-consult-the-kibana-logs-for-more-details/112106
https://discuss.elastic.co/t/no-x-pack-login-is-currently-disabled-administrators-should-consult-the-kibana-logs-for-more-details/143648/3
https://discuss.elastic.co/t/no-x-pack-login-is-currently-disabled-administrators-should-consult-the-kibana-logs-for-more-details/143648/11
https://discuss.elastic.co/t/6-0-0-login-is-currently-disabled-administrators-should-consult-the-kibana-logs-for-more-details/128247
https://blog.csdn.net/qq_38038143/article/details/101311887
https://www.elastic.co/guide/en/kibana/current/disable-plugin.html
https://www.elastic.co/cn/downloads/x-pack
https://www.elastic.co/guide/en/kibana/6.3/update-remove-plugin.html#update-remove-plugin