使用docker方式启动的kibana

问题原因:使用了公网ip去启动了kibana,正确的方式是使用ES在内网分配的ip地址

日志报错:

#查看最新200行日志
docker logs -f --tail 200 kibana

{“type”:“log”,"@timestamp":“2021-01-15T12:22:48Z”,“tags”:[“license”,“warning”,“xpack”],“pid”:6,“message”:“License information from the X-Pack plugin could not be obtained from Elasticsearch for the [data] cluster. Error: Request Timeout after 30000ms”}
{“type”:“log”,"@timestamp":“2021-01-15T12:23:23Z”,“tags”:[“reporting”,“esqueue”,“queue-worker”,“error”],“pid”:6,“message”:“kjy92xzm0006e1a304c2wriv - job querying failed: Error: Request Timeout after 30000ms\n at /usr/share/kibana/node_modules/elasticsearch/src/lib/transport.js:397:9\n at Timeout. (/usr/share/kibana/node_modules/elasticsearch/src/lib/transport.js:429:7)\n at ontimeout (timers.js:436:11)\n at tryOnTimeout (timers.js:300:5)\n at listOnTimeout (timers.js:263:5)\n at Timer.processTimers (timers.js:223:10)”}
{“type”:“log”,"@timestamp":“2021-01-15T12:23:48Z”,“tags”:[“license”,“warning”,“xpack”],“pid”:6,“message”:“License information from the X-Pack plugin could not be obtained from Elasticsearch for the [data] cluster. Error: Request Timeout after 30000ms”}
{“type”:“log”,"@timestamp":“2021-01-15T12:24:23Z”,“tags”:[“reporting”,“esqueue”,“queue-worker”,“error”],“pid”:6,“message”:“kjy92xzm0006e1a304c2wriv - job querying failed: Error: Request Timeout after 30000ms\n at /usr/share/kibana/node_modules/elasticsearch/src/lib/transport.js:397:9\n at Timeout. (/usr/share/kibana/node_modules/elasticsearch/src/lib/transport.js:429:7)\n at ontimeout (timers.js:436:11)\n at tryOnTimeout (timers.js:300:5)\n at listOnTimeout (timers.js:263:5)\n at Timer.processTimers (timers.js:223:10)”}

 docker inspect elasticsearch  |grep IPAddress
#不能使用公网ip,使用内网es分配的ip启动kibana
#启动kibana
 docker run --name kibana -e ELASTICSEARCH_HOSTS=http://上一步查出来的ip:9200 -p 5601:5601 -d kibana:7.4.2 
Logo

权威|前沿|技术|干货|国内首个API全生命周期开发者社区

更多推荐