首先你能看到我这篇文章,而且报错描述也一样,那么恭喜你就能解决这个问题!!!

kibana连接ES显示Cannot connect to the Elasticsearch clusterSee the Kibana logs for details and try reloa_elasticsearch


是不是和你的一样!!!

在确认一下Kibana的日志信息!!!

{"type":"log","@timestamp":"2020-07-14T12:37:18Z","tags":["status","plugin:rollup@7.4.2","info"],"pid":6,"state":"green","message":"Status changed from yellow to green - Ready","prevState":"yellow","prevMsg":"Waiting for Elasticsearch"}
{"type":"log","@timestamp":"2020-07-14T12:37:18Z","tags":["status","plugin:remote_clusters@7.4.2","info"],"pid":6,"state":"green","message":"Status changed from yellow to green - Ready","prevState":"yellow","prevMsg":"Waiting for Elasticsearch"}
{"type":"log","@timestamp":"2020-07-14T12:37:18Z","tags":["status","plugin:cross_cluster_replication@7.4.2","info"],"pid":6,"state":"green","message":"Status changed from yellow to green - Ready","prevState":"yellow","prevMsg":"Waiting for Elasticsearch"}
{"type":"log","@timestamp":"2020-07-14T12:37:18Z","tags":["status","plugin:file_upload@7.4.2","info"],"pid":6,"state":"green","message":"Status changed from yellow to green - Ready","prevState":"yellow","prevMsg":"Waiting for Elasticsearch"}
{"type":"log","@timestamp":"2020-07-14T12:37:18Z","tags":["status","plugin:snapshot_restore@7.4.2","info"],"pid":6,"state":"green","message":"Status changed from yellow to green - Ready","prevState":"yellow","prevMsg":"Waiting for Elasticsearch"}
{"type":"log","@timestamp":"2020-07-14T12:37:18Z","tags":["info","monitoring","kibana-monitoring"],"pid":6,"message":"Starting monitoring stats collection"}
{"type":"log","@timestamp":"2020-07-14T12:37:18Z","tags":["status","plugin:maps@7.4.2","info"],"pid":6,"state":"green","message":"Status changed from yellow to green - Ready","prevState":"yellow","prevMsg":"Waiting for Elasticsearch"}
{"type":"log","@timestamp":"2020-07-14T12:37:18Z","tags":["reporting","warning"],"pid":6,"message":"Generating a random key for xpack.reporting.encryptionKey. To prevent pending reports from failing on restart, please set xpack.reporting.encryptionKey in kibana.yml"}
{"type":"log","@timestamp":"2020-07-14T12:37:18Z","tags":["status","plugin:reporting@7.4.2","info"],"pid":6,"state":"green","message":"Status changed from uninitialized to green - Ready","prevState":"uninitialized","prevMsg":"uninitialized"}
{"type":"log","@timestamp":"2020-07-14T12:37:18Z","tags":["status","plugin:spaces@7.4.2","error"],"pid":6,"state":"red","message":"Status changed from yellow to red - [parent] Data too large, data for [<http_request>] would be [124171416/118.4mb], which is larger than the limit of [123273216/117.5mb], real usage: [124171416/118.4mb], new bytes reserved: [0/0b], usages [request=0/0b, fielddata=1273/1.2kb, in_flight_requests=0/0b, accounting=29950/29.2kb]: [circuit_breaking_exception] [parent] Data too large, data for [<http_request>] would be [124171416/118.4mb], which is larger than the limit of [123273216/117.5mb], real usage: [124171416/118.4mb], new bytes reserved: [0/0b], usages [request=0/0b, fielddata=1273/1.2kb, in_flight_requests=0/0b, accounting=29950/29.2kb], with { bytes_wanted=124171416 & bytes_limit=123273216 & durability=\"PERMANENT\" }","prevState":"yellow","prevMsg":"Waiting for Elasticsearch"}
{"type":"log","@timestamp":"2020-07-14T12:37:18Z","tags":["fatal","root"],"pid":6,"message":"{ [circuit_breaking_exception] [parent] Data too large, data for [<http_request>] would be [124171416/118.4mb], which is larger than the limit of [123273216/117.5mb], real usage: [124171416/118.4mb], new bytes reserved: [0/0b], usages [request=0/0b, fielddata=1273/1.2kb, in_flight_requests=0/0b, accounting=29950/29.2kb], with { bytes_wanted=124171416 & bytes_limit=123273216 & durability=\"PERMANENT\" } :: {\"path\":\"/.kibana_task_manager\",\"query\":{},\"statusCode\":429,\"response\":\"{\\\"error\\\":{\\\"root_cause\\\":[{\\\"type\\\":\\\"circuit_breaking_exception\\\",\\\"reason\\\":\\\"[parent] Data too large, data for [<http_request>] would be [124171416/118.4mb], which is larger than the limit of [123273216/117.5mb], real usage: [124171416/118.4mb], new bytes reserved: [0/0b], usages [request=0/0b, fielddata=1273/1.2kb, in_flight_requests=0/0b, accounting=29950/29.2kb]\\\",\\\"bytes_wanted\\\":124171416,\\\"bytes_limit\\\":123273216,\\\"durability\\\":\\\"PERMANENT\\\"}],\\\"type\\\":\\\"circuit_breaking_exception\\\",\\\"reason\\\":\\\"[parent] Data too large, data for [<http_request>] would be [124171416/118.4mb], which is larger than the limit of [123273216/117.5mb], real usage: [124171416/118.4mb], new bytes reserved: [0/0b], usages [request=0/0b, fielddata=1273/1.2kb, in_flight_requests=0/0b, accounting=29950/29.2kb]\\\",\\\"bytes_wanted\\\":124171416,\\\"bytes_limit\\\":123273216,\\\"durability\\\":\\\"PERMANENT\\\"},\\\"status\\\":429}\"}\n at respond (/usr/share/kibana/node_modules/elasticsearch/src/lib/transport.js:349:15)\n at checkRespForFailure (/usr/share/kibana/node_modules/elasticsearch/src/lib/transport.js:306:7)\n at HttpConnector.<anonymous> (/usr/share/kibana/node_modules/elasticsearch/src/lib/connectors/http.js:173:7)\n at IncomingMessage.wrapper (/usr/share/kibana/node_modules/elasticsearch/node_modules/lodash/lodash.js:4929:19)\n at IncomingMessage.emit (events.js:194:15)\n at endReadableNT (_stream_readable.js:1103:12)\n at process._tickCallback (internal/process/next_tick.js:63:19)\n status: 429,\n displayName: 'TooManyRequests',\n message:\n '[parent] Data too large, data for [<http_request>] would be [124171416/118.4mb], which is larger than the limit of [123273216/117.5mb], real usage: [124171416/118.4mb], new bytes reserved: [0/0b], usages [request=0/0b, fielddata=1273/1.2kb, in_flight_requests=0/0b, accounting=29950/29.2kb]: [circuit_breaking_exception] [parent] Data too large, data for [<http_request>] would be [124171416/118.4mb], which is larger than the limit of [123273216/117.5mb], real usage: [124171416/118.4mb], new bytes reserved: [0/0b], usages [request=0/0b, fielddata=1273/1.2kb, in_flight_requests=0/0b, accounting=29950/29.2kb], with { bytes_wanted=124171416 & bytes_limit=123273216 & durability=\"PERMANENT\" }',\n path: '/.kibana_task_manager',\n query: {},\n body:\n { error:\n { root_cause: [Array],\n type: 'circuit_breaking_exception',\n reason:\n '[parent] Data too large, data for [<http_request>] would be [124171416/118.4mb], which is larger than the limit of [123273216/117.5mb], real usage: [124171416/118.4mb], new bytes reserved: [0/0b], usages [request=0/0b, fielddata=1273/1.2kb, in_flight_requests=0/0b, accounting=29950/29.2kb]',\n bytes_wanted: 124171416,\n bytes_limit: 123273216,\n durability: 'PERMANENT' },\n status: 429 },\n statusCode: 429,\n response:\n '{\"error\":{\"root_cause\":[{\"type\":\"circuit_breaking_exception\",\"reason\":\"[parent] Data too large, data for [<http_request>] would be [124171416/118.4mb], which is larger than the limit of [123273216/117.5mb], real usage: [124171416/118.4mb], new bytes reserved: [0/0b], usages [request=0/0b, fielddata=1273/1.2kb, in_flight_requests=0/0b, accounting=29950/29.2kb]\",\"bytes_wanted\":124171416,\"bytes_limit\":123273216,\"durability\":\"PERMANENT\"}],\"type\":\"circuit_breaking_exception\",\"reason\":\"[parent] Data too large, data for [<http_request>] would be [124171416/118.4mb], which is larger than the limit of [123273216/117.5mb], real usage: [124171416/118.4mb], new bytes reserved: [0/0b], usages [request=0/0b, fielddata=1273/1.2kb, in_flight_requests=0/0b, accounting=29950/29.2kb]\",\"bytes_wanted\":124171416,\"bytes_limit\":123273216,\"durability\":\"PERMANENT\"},\"status\":429}',\n toString: [Function],\n toJSON: [Function],\n isBoom: true,\n isServer: true,\n data: null,\n output:\n { statusCode: 500,\n payload:\n { message: 'An internal server error occurred',\n statusCode: 500,\n error: 'Internal Server Error' },\n headers: {} },\n reformat: [Function],\n [Symbol(SavedObjectsClientErrorCode)]: 'SavedObjectsClient/generalError' }"}
{"type":"log","@timestamp":"2020-07-14T12:37:18Z","tags":["info","plugins-system"],"pid":6,"message":"Stopping all plugins."}
{"type":"log","@timestamp":"2020-07-14T12:37:18Z","tags":["info","plugins","data"],"pid":6,"message":"Stopping plugin"}
{"type":"log","@timestamp":"2020-07-14T12:37:18Z","tags":["info","plugins","translations"],"pid":6,"message":"Stopping plugin"}
{"type":"log","@timestamp":"2020-07-14T12:37:18Z","tags":["info","plugins","security"],"pid":6,"message":"Stopping plugin"}

FATAL [circuit_breaking_exception] [parent] Data too large, data for [<http_request>] would be [124171416/118.4mb], which is larger than the limit of [123273216/117.5mb], real usage: [124171416/118.4mb], new bytes reserved: [0/0b], usages [request=0/0b, fielddata=1273/1.2kb, in_flight_requests=0/0b, accounting=29950/29.2kb], with { bytes_wanted=124171416 & bytes_limit=123273216 & durability="PERMANENT" } :: {"path":"/.kibana_task_manager","query":{},"statusCode":429,"response":"{\"error\":{\"root_cause\":[{\"type\":\"circuit_breaking_exception\",\"reason\":\"[parent] Data too large, data for [<http_request>] would be [124171416/118.4mb], which is larger than the limit of [123273216/117.5mb], real usage: [124171416/118.4mb], new bytes reserved: [0/0b], usages [request=0/0b, fielddata=1273/1.2kb, in_flight_requests=0/0b, accounting=29950/29.2kb]\",\"bytes_wanted\":124171416,\"bytes_limit\":123273216,\"durability\":\"PERMANENT\"}],\"type\":\"circuit_breaking_exception\",\"reason\":\"[parent] Data too large, data for [<http_request>] would be [124171416/118.4mb], which is larger than the limit of [123273216/117.5mb], real usage: [124171416/118.4mb], new bytes reserved: [0/0b], usages [request=0/0b, fielddata=1273/1.2kb, in_flight_requests=0/0b, accounting=29950/29.2kb]\",\"bytes_wanted\":124171416,\"bytes_limit\":123273216,\"durability\":\"PERMANENT\"},\"status\":429}"}

看看你的kibana中有没有图中圈起来的报错信息

kibana连接ES显示Cannot connect to the Elasticsearch clusterSee the Kibana logs for details and try reloa_big data_02


问题分析!!!

这就是ES的容量不够导致的熔断,导致Kibana连接ES连接不上,但是这里单独使用Posman去测试ES居然是正常显示的!!!

kibana连接ES显示Cannot connect to the Elasticsearch clusterSee the Kibana logs for details and try reloa_elasticsearch_03

解决方案
要么你自己想办法把ES的最大容量改大!
要么就重启ES改大容量