当前位置 博文首页 > asd1358355022的博客:安装kibana后的坑

    asd1358355022的博客:安装kibana后的坑

    作者:[db:作者] 时间:2021-08-05 09:56

    使用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 
    
    cs