Kibana, Error:PollError Request Timeout after 30000ms
今天遇到了一个Kibana无法启动的问题,发生该问题的时候,具体情况与Kibana的报错信息如下:
发起启动Kibana的命令:
1 2 3 4 5 6 7 |
[root@elk01 software]# service kibana start kibana started [root@elk01 software]# service kibana status kibana is running [root@elk01 software]# netstat -tupln | grep 5601 tcp 0 0 192.168.72.112:5601 0.0.0.0:* LISTEN 29687/node [root@elk01 software]# |
可以看到Kibana暂时起来了。
但是过一段时间再去查看,发现Kibana的服务掉了:
1 2 3 4 |
[root@elk01 software]# service kibana status kibana is not running [root@elk01 software]# netstat -tupln | grep 5601 [root@elk01 software]# |
上面这个过程的后台日志具体如下:
文件:kibana.stderr
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
[root@elk01 ~]# cat /var/log/kibana/kibana.stderr FATAL Error: Request Timeout after 30000ms FATAL Error: Request Timeout after 30000ms FATAL Error: Request Timeout after 30000ms FATAL Error: [elasticsearch.hosts]: types that failed validation: - [elasticsearch.hosts.0]: expected value of type [string] but got [Array]. - [elasticsearch.hosts.1.0]: expected URI with scheme [http|https] but but got [192.168.72.112:9200]. FATAL Error: Request Timeout after 30000ms FATAL Error: Request Timeout after 30000ms FATAL Error: Request Timeout after 30000ms [root@elk01 ~]# |
文件:kibana.stdout
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 |
{"type":"log","@timestamp":"2019-09-20T05:49:18Z","tags":["info","plugins-system"],"pid":29687,"message":"Setting up [1] plugins: [translations]"} {"type":"log","@timestamp":"2019-09-20T05:49:18Z","tags":["info","plugins","translations"],"pid":29687,"message":"Setting up plugin"} {"type":"log","@timestamp":"2019-09-20T05:49:18Z","tags":["info","plugins-system"],"pid":29687,"message":"Starting [1] plugins: [translations]"} {"type":"log","@timestamp":"2019-09-20T05:49:31Z","tags":["status","plugin:kibana@7.3.2","info"],"pid":29687,"state":"green","message":"Status changed from uninitialized to green - Ready","prevState":"uninitialized","prevMsg":"uninitialized"} {"type":"log","@timestamp":"2019-09-20T05:49:31Z","tags":["status","plugin:elasticsearch@7.3.2","info"],"pid":29687,"state":"yellow","message":"Status changed from uninitialized to yellow - Waiting for Elasticsearch","prevState":"uninitialized","prevMsg":"uninitialized"} {"type":"log","@timestamp":"2019-09-20T05:49:31Z","tags":["status","plugin:xpack_main@7.3.2","info"],"pid":29687,"state":"yellow","message":"Status changed from uninitialized to yellow - Waiting for Elasticsearch","prevState":"uninitialized","prevMsg":"uninitialized"} {"type":"log","@timestamp":"2019-09-20T05:49:31Z","tags":["status","plugin:telemetry@7.3.2","info"],"pid":29687,"state":"green","message":"Status changed from uninitialized to green - Ready","prevState":"uninitialized","prevMsg":"uninitialized"} {"type":"log","@timestamp":"2019-09-20T05:49:31Z","tags":["status","plugin:graph@7.3.2","info"],"pid":29687,"state":"yellow","message":"Status changed from uninitialized to yellow - Waiting for Elasticsearch","prevState":"uninitialized","prevMsg":"uninitialized"} {"type":"log","@timestamp":"2019-09-20T05:49:31Z","tags":["status","plugin:monitoring@7.3.2","info"],"pid":29687,"state":"green","message":"Status changed from uninitialized to green - Ready","prevState":"uninitialized","prevMsg":"uninitialized"} {"type":"log","@timestamp":"2019-09-20T05:49:31Z","tags":["status","plugin:spaces@7.3.2","info"],"pid":29687,"state":"yellow","message":"Status changed from uninitialized to yellow - Waiting for Elasticsearch","prevState":"uninitialized","prevMsg":"uninitialized"} {"type":"log","@timestamp":"2019-09-20T05:49:31Z","tags":["security","warning"],"pid":29687,"message":"Generating a random key for xpack.security.encryptionKey. To prevent sessions from being invalidated on restart, please set xpack.security.encryptionKey in kibana.yml"} {"type":"log","@timestamp":"2019-09-20T05:49:31Z","tags":["security","warning"],"pid":29687,"message":"Session cookies will be transmitted over insecure connections. This is not recommended."} {"type":"log","@timestamp":"2019-09-20T05:49:31Z","tags":["status","plugin:security@7.3.2","info"],"pid":29687,"state":"green","message":"Status changed from uninitialized to green - Ready","prevState":"uninitialized","prevMsg":"uninitialized"} {"type":"log","@timestamp":"2019-09-20T05:49:31Z","tags":["status","plugin:searchprofiler@7.3.2","info"],"pid":29687,"state":"yellow","message":"Status changed from uninitialized to yellow - Waiting for Elasticsearch","prevState":"uninitialized","prevMsg":"uninitialized"} {"type":"log","@timestamp":"2019-09-20T05:49:31Z","tags":["status","plugin:ml@7.3.2","info"],"pid":29687,"state":"yellow","message":"Status changed from uninitialized to yellow - Waiting for Elasticsearch","prevState":"uninitialized","prevMsg":"uninitialized"} {"type":"log","@timestamp":"2019-09-20T05:49:31Z","tags":["status","plugin:tilemap@7.3.2","info"],"pid":29687,"state":"yellow","message":"Status changed from uninitialized to yellow - Waiting for Elasticsearch","prevState":"uninitialized","prevMsg":"uninitialized"} {"type":"log","@timestamp":"2019-09-20T05:49:31Z","tags":["status","plugin:watcher@7.3.2","info"],"pid":29687,"state":"yellow","message":"Status changed from uninitialized to yellow - Waiting for Elasticsearch","prevState":"uninitialized","prevMsg":"uninitialized"} {"type":"log","@timestamp":"2019-09-20T05:49:31Z","tags":["status","plugin:grokdebugger@7.3.2","info"],"pid":29687,"state":"yellow","message":"Status changed from uninitialized to yellow - Waiting for Elasticsearch","prevState":"uninitialized","prevMsg":"uninitialized"} {"type":"log","@timestamp":"2019-09-20T05:49:31Z","tags":["status","plugin:dashboard_mode@7.3.2","info"],"pid":29687,"state":"green","message":"Status changed from uninitialized to green - Ready","prevState":"uninitialized","prevMsg":"uninitialized"} {"type":"log","@timestamp":"2019-09-20T05:49:31Z","tags":["status","plugin:logstash@7.3.2","info"],"pid":29687,"state":"yellow","message":"Status changed from uninitialized to yellow - Waiting for Elasticsearch","prevState":"uninitialized","prevMsg":"uninitialized"} {"type":"log","@timestamp":"2019-09-20T05:49:31Z","tags":["status","plugin:beats_management@7.3.2","info"],"pid":29687,"state":"yellow","message":"Status changed from uninitialized to yellow - Waiting for Elasticsearch","prevState":"uninitialized","prevMsg":"uninitialized"} {"type":"log","@timestamp":"2019-09-20T05:49:31Z","tags":["status","plugin:apm_oss@7.3.2","info"],"pid":29687,"state":"green","message":"Status changed from uninitialized to green - Ready","prevState":"uninitialized","prevMsg":"uninitialized"} {"type":"log","@timestamp":"2019-09-20T05:49:31Z","tags":["status","plugin:apm@7.3.2","info"],"pid":29687,"state":"green","message":"Status changed from uninitialized to green - Ready","prevState":"uninitialized","prevMsg":"uninitialized"} {"type":"log","@timestamp":"2019-09-20T05:49:31Z","tags":["status","plugin:code@7.3.2","info"],"pid":29687,"state":"green","message":"Status changed from uninitialized to green - Ready","prevState":"uninitialized","prevMsg":"uninitialized"} {"type":"log","@timestamp":"2019-09-20T05:49:31Z","tags":["status","plugin:tile_map@7.3.2","info"],"pid":29687,"state":"green","message":"Status changed from uninitialized to green - Ready","prevState":"uninitialized","prevMsg":"uninitialized"} {"type":"log","@timestamp":"2019-09-20T05:49:31Z","tags":["status","plugin:task_manager@7.3.2","info"],"pid":29687,"state":"green","message":"Status changed from uninitialized to green - Ready","prevState":"uninitialized","prevMsg":"uninitialized"} {"type":"log","@timestamp":"2019-09-20T05:49:31Z","tags":["status","plugin:maps@7.3.2","info"],"pid":29687,"state":"yellow","message":"Status changed from uninitialized to yellow - Waiting for Elasticsearch","prevState":"uninitialized","prevMsg":"uninitialized"} {"type":"log","@timestamp":"2019-09-20T05:49:31Z","tags":["status","plugin:interpreter@7.3.2","info"],"pid":29687,"state":"green","message":"Status changed from uninitialized to green - Ready","prevState":"uninitialized","prevMsg":"uninitialized"} {"type":"log","@timestamp":"2019-09-20T05:49:31Z","tags":["status","plugin:canvas@7.3.2","info"],"pid":29687,"state":"green","message":"Status changed from uninitialized to green - Ready","prevState":"uninitialized","prevMsg":"uninitialized"} {"type":"log","@timestamp":"2019-09-20T05:49:31Z","tags":["status","plugin:license_management@7.3.2","info"],"pid":29687,"state":"green","message":"Status changed from uninitialized to green - Ready","prevState":"uninitialized","prevMsg":"uninitialized"} {"type":"log","@timestamp":"2019-09-20T05:49:31Z","tags":["status","plugin:cloud@7.3.2","info"],"pid":29687,"state":"green","message":"Status changed from uninitialized to green - Ready","prevState":"uninitialized","prevMsg":"uninitialized"} {"type":"log","@timestamp":"2019-09-20T05:49:31Z","tags":["status","plugin:index_management@7.3.2","info"],"pid":29687,"state":"yellow","message":"Status changed from uninitialized to yellow - Waiting for Elasticsearch","prevState":"uninitialized","prevMsg":"uninitialized"} {"type":"log","@timestamp":"2019-09-20T05:49:31Z","tags":["status","plugin:console@7.3.2","info"],"pid":29687,"state":"green","message":"Status changed from uninitialized to green - Ready","prevState":"uninitialized","prevMsg":"uninitialized"} {"type":"log","@timestamp":"2019-09-20T05:49:31Z","tags":["status","plugin:console_extensions@7.3.2","info"],"pid":29687,"state":"green","message":"Status changed from uninitialized to green - Ready","prevState":"uninitialized","prevMsg":"uninitialized"} {"type":"log","@timestamp":"2019-09-20T05:49:31Z","tags":["status","plugin:notifications@7.3.2","info"],"pid":29687,"state":"green","message":"Status changed from uninitialized to green - Ready","prevState":"uninitialized","prevMsg":"uninitialized"} {"type":"log","@timestamp":"2019-09-20T05:49:31Z","tags":["status","plugin:index_lifecycle_management@7.3.2","info"],"pid":29687,"state":"yellow","message":"Status changed from uninitialized to yellow - Waiting for Elasticsearch","prevState":"uninitialized","prevMsg":"uninitialized"} {"type":"log","@timestamp":"2019-09-20T05:49:31Z","tags":["status","plugin:metrics@7.3.2","info"],"pid":29687,"state":"green","message":"Status changed from uninitialized to green - Ready","prevState":"uninitialized","prevMsg":"uninitialized"} {"type":"log","@timestamp":"2019-09-20T05:49:31Z","tags":["status","plugin:infra@7.3.2","info"],"pid":29687,"state":"green","message":"Status changed from uninitialized to green - Ready","prevState":"uninitialized","prevMsg":"uninitialized"} {"type":"log","@timestamp":"2019-09-20T05:49:31Z","tags":["status","plugin:rollup@7.3.2","info"],"pid":29687,"state":"yellow","message":"Status changed from uninitialized to yellow - Waiting for Elasticsearch","prevState":"uninitialized","prevMsg":"uninitialized"} {"type":"log","@timestamp":"2019-09-20T05:49:31Z","tags":["info","siem"],"pid":29687,"message":"Plugin initializing"} {"type":"log","@timestamp":"2019-09-20T05:49:31Z","tags":["info","siem"],"pid":29687,"message":"Plugin done initializing"} {"type":"log","@timestamp":"2019-09-20T05:49:31Z","tags":["status","plugin:siem@7.3.2","info"],"pid":29687,"state":"green","message":"Status changed from uninitialized to green - Ready","prevState":"uninitialized","prevMsg":"uninitialized"} {"type":"log","@timestamp":"2019-09-20T05:49:31Z","tags":["status","plugin:remote_clusters@7.3.2","info"],"pid":29687,"state":"yellow","message":"Status changed from uninitialized to yellow - Waiting for Elasticsearch","prevState":"uninitialized","prevMsg":"uninitialized"} {"type":"log","@timestamp":"2019-09-20T05:49:31Z","tags":["status","plugin:cross_cluster_replication@7.3.2","info"],"pid":29687,"state":"yellow","message":"Status changed from uninitialized to yellow - Waiting for Elasticsearch","prevState":"uninitialized","prevMsg":"uninitialized"} {"type":"log","@timestamp":"2019-09-20T05:49:31Z","tags":["status","plugin:upgrade_assistant@7.3.2","info"],"pid":29687,"state":"green","message":"Status changed from uninitialized to green - Ready","prevState":"uninitialized","prevMsg":"uninitialized"} {"type":"log","@timestamp":"2019-09-20T05:49:32Z","tags":["status","plugin:uptime@7.3.2","info"],"pid":29687,"state":"green","message":"Status changed from uninitialized to green - Ready","prevState":"uninitialized","prevMsg":"uninitialized"} {"type":"log","@timestamp":"2019-09-20T05:49:32Z","tags":["status","plugin:oss_telemetry@7.3.2","info"],"pid":29687,"state":"green","message":"Status changed from uninitialized to green - Ready","prevState":"uninitialized","prevMsg":"uninitialized"} {"type":"log","@timestamp":"2019-09-20T05:49:32Z","tags":["status","plugin:file_upload@7.3.2","info"],"pid":29687,"state":"yellow","message":"Status changed from uninitialized to yellow - Waiting for Elasticsearch","prevState":"uninitialized","prevMsg":"uninitialized"} {"type":"log","@timestamp":"2019-09-20T05:49:32Z","tags":["warning","encrypted_saved_objects"],"pid":29687,"message":"Generating a random key for xpack.encrypted_saved_objects.encryptionKey. To be able to decrypt encrypted saved objects attributes after restart, please set xpack.encrypted_saved_objects.encryptionKey in kibana.yml"} {"type":"log","@timestamp":"2019-09-20T05:49:32Z","tags":["status","plugin:encrypted_saved_objects@7.3.2","info"],"pid":29687,"state":"green","message":"Status changed from uninitialized to green - Ready","prevState":"uninitialized","prevMsg":"uninitialized"} {"type":"log","@timestamp":"2019-09-20T05:49:32Z","tags":["status","plugin:snapshot_restore@7.3.2","info"],"pid":29687,"state":"yellow","message":"Status changed from uninitialized to yellow - Waiting for Elasticsearch","prevState":"uninitialized","prevMsg":"uninitialized"} {"type":"log","@timestamp":"2019-09-20T05:49:32Z","tags":["status","plugin:actions@7.3.2","info"],"pid":29687,"state":"green","message":"Status changed from uninitialized to green - Ready","prevState":"uninitialized","prevMsg":"uninitialized"} {"type":"log","@timestamp":"2019-09-20T05:49:32Z","tags":["status","plugin:alerting@7.3.2","info"],"pid":29687,"state":"green","message":"Status changed from uninitialized to green - Ready","prevState":"uninitialized","prevMsg":"uninitialized"} {"type":"log","@timestamp":"2019-09-20T05:49:32Z","tags":["status","plugin:data@7.3.2","info"],"pid":29687,"state":"green","message":"Status changed from uninitialized to green - Ready","prevState":"uninitialized","prevMsg":"uninitialized"} {"type":"log","@timestamp":"2019-09-20T05:49:32Z","tags":["status","plugin:timelion@7.3.2","info"],"pid":29687,"state":"green","message":"Status changed from uninitialized to green - Ready","prevState":"uninitialized","prevMsg":"uninitialized"} {"type":"log","@timestamp":"2019-09-20T05:49:32Z","tags":["status","plugin:ui_metric@7.3.2","info"],"pid":29687,"state":"green","message":"Status changed from uninitialized to green - Ready","prevState":"uninitialized","prevMsg":"uninitialized"} {"type":"log","@timestamp":"2019-09-20T05:49:32Z","tags":["status","plugin:visualizations@7.3.2","info"],"pid":29687,"state":"green","message":"Status changed from uninitialized to green - Ready","prevState":"uninitialized","prevMsg":"uninitialized"} {"type":"log","@timestamp":"2019-09-20T05:49:33Z","tags":["status","plugin:elasticsearch@7.3.2","info"],"pid":29687,"state":"green","message":"Status changed from yellow to green - Ready","prevState":"yellow","prevMsg":"Waiting for Elasticsearch"} {"type":"log","@timestamp":"2019-09-20T05:49:33Z","tags":["status","plugin:xpack_main@7.3.2","error"],"pid":29687,"state":"red","message":"Status changed from yellow to red - [data] Elasticsearch cluster did not respond with license information.","prevState":"yellow","prevMsg":"Waiting for Elasticsearch"} {"type":"log","@timestamp":"2019-09-20T05:49:33Z","tags":["status","plugin:graph@7.3.2","error"],"pid":29687,"state":"red","message":"Status changed from yellow to red - [data] Elasticsearch cluster did not respond with license information.","prevState":"yellow","prevMsg":"Waiting for Elasticsearch"} {"type":"log","@timestamp":"2019-09-20T05:49:33Z","tags":["status","plugin:spaces@7.3.2","error"],"pid":29687,"state":"red","message":"Status changed from yellow to red - [data] Elasticsearch cluster did not respond with license information.","prevState":"yellow","prevMsg":"Waiting for Elasticsearch"} {"type":"log","@timestamp":"2019-09-20T05:49:33Z","tags":["status","plugin:searchprofiler@7.3.2","error"],"pid":29687,"state":"red","message":"Status changed from yellow to red - [data] Elasticsearch cluster did not respond with license information.","prevState":"yellow","prevMsg":"Waiting for Elasticsearch"} {"type":"log","@timestamp":"2019-09-20T05:49:33Z","tags":["status","plugin:ml@7.3.2","error"],"pid":29687,"state":"red","message":"Status changed from yellow to red - [data] Elasticsearch cluster did not respond with license information.","prevState":"yellow","prevMsg":"Waiting for Elasticsearch"} {"type":"log","@timestamp":"2019-09-20T05:49:33Z","tags":["status","plugin:tilemap@7.3.2","error"],"pid":29687,"state":"red","message":"Status changed from yellow to red - [data] Elasticsearch cluster did not respond with license information.","prevState":"yellow","prevMsg":"Waiting for Elasticsearch"} {"type":"log","@timestamp":"2019-09-20T05:49:33Z","tags":["status","plugin:watcher@7.3.2","error"],"pid":29687,"state":"red","message":"Status changed from yellow to red - [data] Elasticsearch cluster did not respond with license information.","prevState":"yellow","prevMsg":"Waiting for Elasticsearch"} {"type":"log","@timestamp":"2019-09-20T05:49:33Z","tags":["status","plugin:grokdebugger@7.3.2","error"],"pid":29687,"state":"red","message":"Status changed from yellow to red - [data] Elasticsearch cluster did not respond with license information.","prevState":"yellow","prevMsg":"Waiting for Elasticsearch"} {"type":"log","@timestamp":"2019-09-20T05:49:33Z","tags":["status","plugin:logstash@7.3.2","error"],"pid":29687,"state":"red","message":"Status changed from yellow to red - [data] Elasticsearch cluster did not respond with license information.","prevState":"yellow","prevMsg":"Waiting for Elasticsearch"} {"type":"log","@timestamp":"2019-09-20T05:49:33Z","tags":["status","plugin:beats_management@7.3.2","error"],"pid":29687,"state":"red","message":"Status changed from yellow to red - [data] Elasticsearch cluster did not respond with license information.","prevState":"yellow","prevMsg":"Waiting for Elasticsearch"} {"type":"log","@timestamp":"2019-09-20T05:49:33Z","tags":["status","plugin:maps@7.3.2","error"],"pid":29687,"state":"red","message":"Status changed from yellow to red - [data] Elasticsearch cluster did not respond with license information.","prevState":"yellow","prevMsg":"Waiting for Elasticsearch"} {"type":"log","@timestamp":"2019-09-20T05:49:33Z","tags":["status","plugin:index_management@7.3.2","error"],"pid":29687,"state":"red","message":"Status changed from yellow to red - [data] Elasticsearch cluster did not respond with license information.","prevState":"yellow","prevMsg":"Waiting for Elasticsearch"} {"type":"log","@timestamp":"2019-09-20T05:49:33Z","tags":["status","plugin:index_lifecycle_management@7.3.2","error"],"pid":29687,"state":"red","message":"Status changed from yellow to red - [data] Elasticsearch cluster did not respond with license information.","prevState":"yellow","prevMsg":"Waiting for Elasticsearch"} {"type":"log","@timestamp":"2019-09-20T05:49:33Z","tags":["status","plugin:rollup@7.3.2","error"],"pid":29687,"state":"red","message":"Status changed from yellow to red - [data] Elasticsearch cluster did not respond with license information.","prevState":"yellow","prevMsg":"Waiting for Elasticsearch"} {"type":"log","@timestamp":"2019-09-20T05:49:33Z","tags":["status","plugin:remote_clusters@7.3.2","error"],"pid":29687,"state":"red","message":"Status changed from yellow to red - [data] Elasticsearch cluster did not respond with license information.","prevState":"yellow","prevMsg":"Waiting for Elasticsearch"} {"type":"log","@timestamp":"2019-09-20T05:49:33Z","tags":["status","plugin:cross_cluster_replication@7.3.2","error"],"pid":29687,"state":"red","message":"Status changed from yellow to red - [data] Elasticsearch cluster did not respond with license information.","prevState":"yellow","prevMsg":"Waiting for Elasticsearch"} {"type":"log","@timestamp":"2019-09-20T05:49:33Z","tags":["status","plugin:file_upload@7.3.2","error"],"pid":29687,"state":"red","message":"Status changed from yellow to red - [data] Elasticsearch cluster did not respond with license information.","prevState":"yellow","prevMsg":"Waiting for Elasticsearch"} {"type":"log","@timestamp":"2019-09-20T05:49:33Z","tags":["status","plugin:snapshot_restore@7.3.2","error"],"pid":29687,"state":"red","message":"Status changed from yellow to red - [data] Elasticsearch cluster did not respond with license information.","prevState":"yellow","prevMsg":"Waiting for Elasticsearch"} {"type":"log","@timestamp":"2019-09-20T05:49:35Z","tags":["reporting","browser-driver","warning"],"pid":29687,"message":"Enabling the Chromium sandbox provides an additional layer of protection."} {"type":"log","@timestamp":"2019-09-20T05:49:35Z","tags":["reporting","warning"],"pid":29687,"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":"2019-09-20T05:49:35Z","tags":["status","plugin:reporting@7.3.2","error"],"pid":29687,"state":"red","message":"Status changed from uninitialized to red - [data] Elasticsearch cluster did not respond with license information.","prevState":"uninitialized","prevMsg":"uninitialized"} {"type":"log","@timestamp":"2019-09-20T05:49:35Z","tags":["status","plugin:security@7.3.2","error"],"pid":29687,"state":"red","message":"Status changed from green to red - [data] Elasticsearch cluster did not respond with license information.","prevState":"green","prevMsg":"Ready"} {"type":"error","@timestamp":"2019-09-20T05:50:03Z","tags":["warning","process"],"pid":29687,"level":"error","error":{"message":"Error: Request Timeout after 30000ms\n at /usr/share/kibana/node_modules/elasticsearch/src/lib/transport.js:362:15\n at Timeout.<anonymous> (/usr/share/kibana/node_modules/elasticsearch/src/lib/transport.js:391: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)","name":"UnhandledPromiseRejectionWarning","stack":"UnhandledPromiseRejectionWarning: Error: Request Timeout after 30000ms\n at /usr/share/kibana/node_modules/elasticsearch/src/lib/transport.js:362:15\n at Timeout.<anonymous> (/usr/share/kibana/node_modules/elasticsearch/src/lib/transport.js:391: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)\n at emitWarning (internal/process/promises.js:81:15)\n at emitPromiseRejectionWarnings (internal/process/promises.js:120:9)\n at process._tickCallback (internal/process/next_tick.js:69:34)"},"message":"Error: Request Timeout after 30000ms\n at /usr/share/kibana/node_modules/elasticsearch/src/lib/transport.js:362:15\n at Timeout.<anonymous> (/usr/share/kibana/node_modules/elasticsearch/src/lib/transport.js:391: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":"error","@timestamp":"2019-09-20T05:50:03Z","tags":["warning","process"],"pid":29687,"level":"error","error":{"message":"Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 125)","name":"UnhandledPromiseRejectionWarning","stack":"Error: Request Timeout after 30000ms\n at /usr/share/kibana/node_modules/elasticsearch/src/lib/transport.js:362:15\n at Timeout.<anonymous> (/usr/share/kibana/node_modules/elasticsearch/src/lib/transport.js:391: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)"},"message":"Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 125)"} {"type":"log","@timestamp":"2019-09-20T05:50:05Z","tags":["reporting","warning"],"pid":29687,"message":"Reporting plugin self-check failed. Please check the Kibana Reporting settings. Error: Request Timeout after 30000ms"} {"type":"log","@timestamp":"2019-09-20T05:50:05Z","tags":["warning","task_manager"],"pid":29687,"message":"PollError Request Timeout after 30000ms"} {"type":"log","@timestamp":"2019-09-20T05:50:05Z","tags":["warning","maps"],"pid":29687,"message":"Error scheduling telemetry task, received NotInitialized: Tasks cannot be scheduled until after task manager is initialized!"} {"type":"log","@timestamp":"2019-09-20T05:50:05Z","tags":["warning","telemetry"],"pid":29687,"message":"Error scheduling task, received NotInitialized: Tasks cannot be scheduled until after task manager is initialized!"} {"type":"log","@timestamp":"2019-09-20T05:50:35Z","tags":["fatal","root"],"pid":29687,"message":"{ Error: Request Timeout after 30000ms\n at /usr/share/kibana/node_modules/elasticsearch/src/lib/transport.js:362:15\n at Timeout.<anonymous> (/usr/share/kibana/node_modules/elasticsearch/src/lib/transport.js:391: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)\n status: undefined,\n displayName: 'RequestTimeout',\n message: 'Request Timeout after 30000ms',\n body: undefined,\n isBoom: true,\n isServer: true,\n data: null,\n output:\n { statusCode: 503,\n payload:\n { statusCode: 503,\n error: 'Service Unavailable',\n message: 'Request Timeout after 30000ms' },\n headers: {} },\n reformat: [Function],\n [Symbol(SavedObjectsClientErrorCode)]: 'SavedObjectsClient/esUnavailable' }"} {"type":"log","@timestamp":"2019-09-20T05:50:35Z","tags":["info","plugins-system"],"pid":29687,"message":"Stopping all plugins."} {"type":"log","@timestamp":"2019-09-20T05:50:35Z","tags":["info","plugins","translations"],"pid":29687,"message":"Stopping plugin"} |
发生错误的时候,ElasticSearch是启动的:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 |
[root@elk01 software]# service elasticsearch status ● elasticsearch.service - Elasticsearch Loaded: loaded (/usr/lib/systemd/system/elasticsearch.service; enabled; vendor preset: disabled) Active: active (running) since Thu 2019-09-19 20:27:42 PDT; 2h 40min ago Docs: http://www.elastic.co Main PID: 22457 (java) CGroup: /system.slice/elasticsearch.service ├─22457 /usr/share/elasticsearch/jdk/bin/java -Xms1g -Xmx1g -XX:+UseConcMa... └─22540 /usr/share/elasticsearch/modules/x-pack-ml/platform/linux-x86_64/b... Sep 19 20:27:42 elk01.adamhuan.com systemd[1]: Started Elasticsearch. Sep 19 20:27:44 elk01.adamhuan.com elasticsearch[22457]: OpenJDK 64-Bit Server VM wa.... Hint: Some lines were ellipsized, use -l to show in full. [root@elk01 software]# [root@elk01 software]# netstat -tupln | grep 9200 tcp6 0 0 192.168.72.112:9200 :::* LISTEN 22457/java [root@elk01 software]# [root@elk01 software]# curl http://192.168.72.112:9200 { "name" : "elk01.adamhuan.com", "cluster_name" : "elasticsearch", "cluster_uuid" : "_na_", "version" : { "number" : "7.3.2", "build_flavor" : "default", "build_type" : "rpm", "build_hash" : "1c1faf1", "build_date" : "2019-09-06T14:40:30.409026Z", "build_snapshot" : false, "lucene_version" : "8.1.0", "minimum_wire_compatibility_version" : "6.8.0", "minimum_index_compatibility_version" : "6.0.0-beta1" }, "tagline" : "You Know, for Search" } [root@elk01 software]# |
可以看到,ElasticSearch的状态是正常的。
而,Kibana的配置是这样的:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 |
[root@elk01 ~]# cat /etc/kibana/kibana.yml # Kibana is served by a back end server. This setting specifies the port to use. server.port: 5601 # Specifies the address to which the Kibana server will bind. IP addresses and host names are both valid values. # The default is 'localhost', which usually means remote machines will not be able to connect. # To allow connections from remote users, set this parameter to a non-loopback address. #server.host: "localhost" server.host: "192.168.72.112" # Enables you to specify a path to mount Kibana at if you are running behind a proxy. # Use the `server.rewriteBasePath` setting to tell Kibana if it should remove the basePath # from requests it receives, and to prevent a deprecation warning at startup. # This setting cannot end in a slash. #server.basePath: "" # Specifies whether Kibana should rewrite requests that are prefixed with # `server.basePath` or require that they are rewritten by your reverse proxy. # This setting was effectively always `false` before Kibana 6.3 and will # default to `true` starting in Kibana 7.0. #server.rewriteBasePath: false # The maximum payload size in bytes for incoming server requests. #server.maxPayloadBytes: 1048576 # The Kibana server's name. This is used for display purposes. #server.name: "your-hostname" server.name: "kibana01" # The URLs of the Elasticsearch instances to use for all your queries. #elasticsearch.hosts: ["http://localhost:9200"] elasticsearch.hosts: ["http://192.168.72.112:9200"] #elasticsearch.hosts: ["192.168.72.112:9200"] #elasticsearch.hosts: "http://192.168.72.112:9200" # When this setting's value is true Kibana uses the hostname specified in the server.host # setting. When the value of this setting is false, Kibana uses the hostname of the host # that connects to this Kibana instance. #elasticsearch.preserveHost: true # Kibana uses an index in Elasticsearch to store saved searches, visualizations and # dashboards. Kibana creates a new index if the index doesn't already exist. #kibana.index: ".kibana" kibana.index: ".kibana" # The default application to load. #kibana.defaultAppId: "home" # If your Elasticsearch is protected with basic authentication, these settings provide # the username and password that the Kibana server uses to perform maintenance on the Kibana # index at startup. Your Kibana users still need to authenticate with Elasticsearch, which # is proxied through the Kibana server. #elasticsearch.username: "kibana" #elasticsearch.password: "pass" # Enables SSL and paths to the PEM-format SSL certificate and SSL key files, respectively. # These settings enable SSL for outgoing requests from the Kibana server to the browser. #server.ssl.enabled: false #server.ssl.certificate: /path/to/your/server.crt #server.ssl.key: /path/to/your/server.key # Optional settings that provide the paths to the PEM-format SSL certificate and key files. # These files validate that your Elasticsearch backend uses the same key files. #elasticsearch.ssl.certificate: /path/to/your/client.crt #elasticsearch.ssl.key: /path/to/your/client.key # Optional setting that enables you to specify a path to the PEM file for the certificate # authority for your Elasticsearch instance. #elasticsearch.ssl.certificateAuthorities: [ "/path/to/your/CA.pem" ] # To disregard the validity of SSL certificates, change this setting's value to 'none'. #elasticsearch.ssl.verificationMode: full # Time in milliseconds to wait for Elasticsearch to respond to pings. Defaults to the value of # the elasticsearch.requestTimeout setting. #elasticsearch.pingTimeout: 1500 # Time in milliseconds to wait for responses from the back end or Elasticsearch. This value # must be a positive integer. #elasticsearch.requestTimeout: 30000 # List of Kibana client-side headers to send to Elasticsearch. To send *no* client-side # headers, set this value to [] (an empty list). #elasticsearch.requestHeadersWhitelist: [ authorization ] # Header names and values that are sent to Elasticsearch. Any custom headers cannot be overwritten # by client-side headers, regardless of the elasticsearch.requestHeadersWhitelist configuration. #elasticsearch.customHeaders: {} # Time in milliseconds for Elasticsearch to wait for responses from shards. Set to 0 to disable. #elasticsearch.shardTimeout: 30000 # Time in milliseconds to wait for Elasticsearch at Kibana startup before retrying. #elasticsearch.startupTimeout: 5000 # Logs queries sent to Elasticsearch. Requires logging.verbose set to true. #elasticsearch.logQueries: false # Specifies the path where Kibana creates the process ID file. #pid.file: /var/run/kibana.pid # Enables you specify a file where Kibana stores log output. #logging.dest: stdout # Set the value of this setting to true to suppress all logging output. #logging.silent: false # Set the value of this setting to true to suppress all logging output other than error messages. #logging.quiet: false # Set the value of this setting to true to log all events, including system usage information # and all requests. #logging.verbose: false # Set the interval in milliseconds to sample system and process performance # metrics. Minimum is 100ms. Defaults to 5000. #ops.interval: 5000 # Specifies locale to be used for all localizable strings, dates and number formats. # Supported languages are the following: English - en , by default , Chinese - zh-CN . #i18n.locale: "en" i18n.locale: "zh-CN" [root@elk01 ~]# |
造成这个问题的原因可能是因为我的ES与KIBANA的版本太新了。(可以顺着阅读,不过造成上面的问题的原因不是因为版本问题,后面还会在描述,当前这里只是猜测)
出问题的时候的版本均为:7.3.2
而我另一个没有问题的ES与KIBANA的版本是:7.3.1
换成,7.3.1,再试试:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
[root@elk01 elastic_stack_7.3.1]# pwd /software/elastic_stack_7.3.1 [root@elk01 elastic_stack_7.3.1]# [root@elk01 elastic_stack_7.3.1]# ls -ltr total 540828 -rw-r--r-- 1 root root 25027402 Sep 20 15:02 filebeat-7.3.1-x86_64.rpm -rw-r--r-- 1 root root 243650898 Sep 20 15:10 kibana-7.3.1-x86_64.rpm -rw-r--r-- 1 root root 285118945 Sep 20 15:13 elasticsearch-7.3.1-x86_64.rpm [root@elk01 elastic_stack_7.3.1]# [root@elk01 elastic_stack_7.3.1]# rpm -qa | grep filebeat filebeat-7.3.1-1.x86_64 [root@elk01 elastic_stack_7.3.1]# rpm -qa | grep kibana kibana-7.3.1-1.x86_64 [root@elk01 elastic_stack_7.3.1]# rpm -qa | grep elasticsearch elasticsearch-7.3.1-1.x86_64 [root@elk01 elastic_stack_7.3.1]# |
可以看到,版本已经换好了。
重新更改配置文件。
ElasticSearch:/etc/elasticsearch/elasticsearch.yml
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 |
[root@elk01 elastic_stack_7.3.1]# cd /etc/elasticsearch/ [root@elk01 elasticsearch]# ls -ltr total 44 -rw-rw---- 1 root elasticsearch 0 Aug 20 04:31 users_roles -rw-rw---- 1 root elasticsearch 0 Aug 20 04:31 users -rw-rw---- 1 root elasticsearch 197 Aug 20 04:31 roles.yml -rw-rw---- 1 root elasticsearch 473 Aug 20 04:31 role_mapping.yml -rw-rw---- 1 root elasticsearch 17222 Aug 20 04:31 log4j2.properties -rw-rw---- 1 root elasticsearch 3596 Aug 20 04:31 jvm.options -rw-rw---- 1 root elasticsearch 2847 Aug 20 04:31 elasticsearch.yml -rw-rw---- 1 root kibana 3061 Sep 20 14:39 elasticsearch.yml.rpmsave -rw-rw---- 1 root elasticsearch 199 Sep 20 15:14 elasticsearch.keystore [root@elk01 elasticsearch]# [root@elk01 elasticsearch]# vi elasticsearch.yml [root@elk01 elasticsearch]# [root@elk01 elasticsearch]# cat elasticsearch.yml | grep -v "^#" path.data: /var/lib/elasticsearch path.logs: /var/log/elasticsearch network.host: 192.168.72.112 http.port: 9200 discovery.seed_hosts: ["192.168.72.112"] [root@elk01 elasticsearch]# |
Kibana:/etc/kibana/kibana.yml
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
[root@elk01 elasticsearch]# cd /etc/kibana/ [root@elk01 kibana]# pwd /etc/kibana [root@elk01 kibana]# ls -ltr total 16 -rw-r--r-- 1 root root 5150 Aug 20 04:59 kibana.yml -rw-r--r-- 1 root root 5397 Sep 20 11:36 kibana.yml.rpmsave [root@elk01 kibana]# [root@elk01 kibana]# vi kibana.yml [root@elk01 kibana]# [root@elk01 kibana]# cat kibana.yml | grep -v "^#" | strings server.port: 5601 server.host: "192.168.72.112" elasticsearch.hosts: ["http://192.168.72.112:9200"] [root@elk01 kibana]# |
启动服务:
ElasticSearch
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
[root@elk01 ~]# service elasticsearch status ● elasticsearch.service - Elasticsearch Loaded: loaded (/usr/lib/systemd/system/elasticsearch.service; disabled; vendor preset: disabled) Active: inactive (dead) Docs: http://www.elastic.co Sep 19 23:39:57 elk01.adamhuan.com elasticsearch[32881]: 2019-09-19 23:39:56,637 mai..." Sep 19 23:39:57 elk01.adamhuan.com elasticsearch[32881]: 2019-09-19 23:39:56,638 mai..." Sep 19 23:39:57 elk01.adamhuan.com elasticsearch[32881]: 2019-09-19 23:39:56,638 mai..." Sep 19 23:39:57 elk01.adamhuan.com systemd[1]: elasticsearch.service: main process ...RE Sep 19 23:39:57 elk01.adamhuan.com systemd[1]: Unit elasticsearch.service entered f...e. Sep 19 23:39:57 elk01.adamhuan.com systemd[1]: elasticsearch.service failed. Sep 19 23:41:32 elk01.adamhuan.com systemd[1]: Started Elasticsearch. Sep 19 23:41:34 elk01.adamhuan.com elasticsearch[33139]: OpenJDK 64-Bit Server VM wa.... Sep 20 00:01:02 elk01.adamhuan.com systemd[1]: Stopping Elasticsearch... Sep 20 00:01:02 elk01.adamhuan.com systemd[1]: Stopped Elasticsearch. Hint: Some lines were ellipsized, use -l to show in full. [root@elk01 ~]# [root@elk01 ~]# service elasticsearch start Starting elasticsearch (via systemctl): [ OK ] [root@elk01 ~]# |
查看日志:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
[root@elk01 ~]# cd /var/log/elasticsearch/ [root@elk01 elasticsearch]# pwd /var/log/elasticsearch [root@elk01 elasticsearch]# ls -ltr total 0 [root@elk01 elasticsearch]# [root@elk01 elasticsearch]# ls -ltr total 28 -rw-r--r-- 1 elasticsearch elasticsearch 1804 Sep 20 15:24 gc.log.00 -rw-r--r-- 1 elasticsearch elasticsearch 0 Sep 20 15:24 elasticsearch_deprecation.log -rw-r--r-- 1 elasticsearch elasticsearch 0 Sep 20 15:24 elasticsearch_server.json -rw-r--r-- 1 elasticsearch elasticsearch 0 Sep 20 15:24 elasticsearch_audit.json -rw-r--r-- 1 elasticsearch elasticsearch 0 Sep 20 15:24 elasticsearch.log -rw-r--r-- 1 elasticsearch elasticsearch 0 Sep 20 15:24 elasticsearch_deprecation.json -rw-r--r-- 1 elasticsearch elasticsearch 0 Sep 20 15:24 elasticsearch_index_indexing_slowlog.log -rw-r--r-- 1 elasticsearch elasticsearch 0 Sep 20 15:24 elasticsearch_index_search_slowlog.log -rw-r--r-- 1 elasticsearch elasticsearch 0 Sep 20 15:24 elasticsearch_index_search_slowlog.json -rw-r--r-- 1 elasticsearch elasticsearch 0 Sep 20 15:24 elasticsearch_index_indexing_slowlog.json -rw-r--r-- 1 elasticsearch elasticsearch 22005 Sep 20 15:24 gc.log [root@elk01 elasticsearch]# [root@elk01 elasticsearch]# tail -f elasticsearch.log (过多的输出,...) [2019-09-20T00:29:00,150][INFO ][o.e.h.AbstractHttpServerTransport] [elk01.adamhuan.com] publish_address {192.168.72.112:9200}, bound_addresses {192.168.72.112:9200} [2019-09-20T00:29:00,151][INFO ][o.e.n.Node ] [elk01.adamhuan.com] started |
再次查看ES的状态:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
[root@elk01 ~]# service elasticsearch status ● elasticsearch.service - Elasticsearch Loaded: loaded (/usr/lib/systemd/system/elasticsearch.service; disabled; vendor preset: disabled) Active: active (running) since Fri 2019-09-20 00:27:52 PDT; 2min 49s ago Docs: http://www.elastic.co Main PID: 36250 (java) CGroup: /system.slice/elasticsearch.service ├─36250 /usr/share/elasticsearch/jdk/bin/java -Xms1g -Xmx1g -XX:+UseConcMa... └─36331 /usr/share/elasticsearch/modules/x-pack-ml/platform/linux-x86_64/b... Sep 20 00:27:52 elk01.adamhuan.com systemd[1]: Started Elasticsearch. Sep 20 00:27:54 elk01.adamhuan.com elasticsearch[36250]: OpenJDK 64-Bit Server VM wa.... Hint: Some lines were ellipsized, use -l to show in full. [root@elk01 ~]# [root@elk01 ~]# netstat -tupln | grep 9200 tcp6 0 0 192.168.72.112:9200 :::* LISTEN 36250/java [root@elk01 ~]# |
访问看看:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 |
[root@elk01 ~]# curl http://192.168.72.112:9200 { "name" : "elk01.adamhuan.com", "cluster_name" : "elasticsearch", "cluster_uuid" : "_na_", "version" : { "number" : "7.3.1", "build_flavor" : "default", "build_type" : "rpm", "build_hash" : "4749ba6", "build_date" : "2019-08-19T20:19:25.651794Z", "build_snapshot" : false, "lucene_version" : "8.1.0", "minimum_wire_compatibility_version" : "6.8.0", "minimum_index_compatibility_version" : "6.0.0-beta1" }, "tagline" : "You Know, for Search" } [root@elk01 ~]# [root@elk01 ~]# curl http://192.168.72.112:9200/_cluster/health?pretty { "error" : { "root_cause" : [ { "type" : "master_not_discovered_exception", "reason" : null } ], "type" : "master_not_discovered_exception", "reason" : null }, "status" : 503 } [root@elk01 ~]# |
可以看到,虽然服务起来了,但是运行状态似乎并不对。
造成这样的原因是,在刚刚装好ES之后,我就设置成了外网访问,因此,很多初始化的部分都没有执行成功。
先去掉外网访问,保持默认的【localhost】访问,然后再启动ElasticSearch。
确认访问【集群状态 / 授权信息】两个页面的状态正常,如下:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 |
[root@elk01 ~]# cat /etc/elasticsearch/elasticsearch.yml | grep -v "^#" | strings path.data: /var/lib/elasticsearch path.logs: /var/log/elasticsearch [root@elk01 ~]# [root@elk01 ~]# service elasticsearch status ● elasticsearch.service - Elasticsearch Loaded: loaded (/usr/lib/systemd/system/elasticsearch.service; disabled; vendor preset: disabled) Active: active (running) since Fri 2019-09-20 00:42:50 PDT; 6min ago Docs: http://www.elastic.co Main PID: 37373 (java) CGroup: /system.slice/elasticsearch.service ├─37373 /usr/share/elasticsearch/jdk/bin/java -Xms1g -Xmx1g -XX:+UseConcMa... └─37456 /usr/share/elasticsearch/modules/x-pack-ml/platform/linux-x86_64/b... Sep 20 00:42:50 elk01.adamhuan.com systemd[1]: Started Elasticsearch. Sep 20 00:42:52 elk01.adamhuan.com elasticsearch[37373]: OpenJDK 64-Bit Server VM wa.... Hint: Some lines were ellipsized, use -l to show in full. [root@elk01 ~]# [root@elk01 ~]# netstat -tupln | grep 9200 tcp6 0 0 127.0.0.1:9200 :::* LISTEN 37373/java tcp6 0 0 ::1:9200 :::* LISTEN 37373/java [root@elk01 ~]# [root@elk01 ~]# curl http://localhost:9200/_cluster/health?pretty { "cluster_name" : "elasticsearch", "status" : "green", "timed_out" : false, "number_of_nodes" : 1, "number_of_data_nodes" : 1, "active_primary_shards" : 0, "active_shards" : 0, "relocating_shards" : 0, "initializing_shards" : 0, "unassigned_shards" : 0, "delayed_unassigned_shards" : 0, "number_of_pending_tasks" : 0, "number_of_in_flight_fetch" : 0, "task_max_waiting_in_queue_millis" : 0, "active_shards_percent_as_number" : 100.0 } [root@elk01 ~]# [root@elk01 ~]# curl http://localhost:9200/_xpack/license { "license" : { "status" : "active", "uid" : "67853c91-a429-4160-adbe-40ef538e6653", "type" : "basic", "issue_date" : "2019-09-20T07:43:34.750Z", "issue_date_in_millis" : 1568965414750, "max_nodes" : 1000, "issued_to" : "elasticsearch", "issuer" : "elasticsearch", "start_date_in_millis" : -1 } } [root@elk01 ~]# |
这个过程中的ES的后台日志如下:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 |
[2019-09-20T00:43:05,870][INFO ][o.e.p.PluginsService ] [elk01.adamhuan.com] loaded module [aggs-matrix-stats] [2019-09-20T00:43:05,870][INFO ][o.e.p.PluginsService ] [elk01.adamhuan.com] loaded module [analysis-common] [2019-09-20T00:43:05,871][INFO ][o.e.p.PluginsService ] [elk01.adamhuan.com] loaded module [data-frame] [2019-09-20T00:43:05,871][INFO ][o.e.p.PluginsService ] [elk01.adamhuan.com] loaded module [flattened] [2019-09-20T00:43:05,871][INFO ][o.e.p.PluginsService ] [elk01.adamhuan.com] loaded module [ingest-common] [2019-09-20T00:43:05,872][INFO ][o.e.p.PluginsService ] [elk01.adamhuan.com] loaded module [ingest-geoip] [2019-09-20T00:43:05,872][INFO ][o.e.p.PluginsService ] [elk01.adamhuan.com] loaded module [ingest-user-agent] [2019-09-20T00:43:05,872][INFO ][o.e.p.PluginsService ] [elk01.adamhuan.com] loaded module [lang-expression] [2019-09-20T00:43:05,873][INFO ][o.e.p.PluginsService ] [elk01.adamhuan.com] loaded module [lang-mustache] [2019-09-20T00:43:05,873][INFO ][o.e.p.PluginsService ] [elk01.adamhuan.com] loaded module [lang-painless] [2019-09-20T00:43:05,874][INFO ][o.e.p.PluginsService ] [elk01.adamhuan.com] loaded module [mapper-extras] [2019-09-20T00:43:05,887][INFO ][o.e.p.PluginsService ] [elk01.adamhuan.com] loaded module [parent-join] [2019-09-20T00:43:05,887][INFO ][o.e.p.PluginsService ] [elk01.adamhuan.com] loaded module [percolator] [2019-09-20T00:43:05,888][INFO ][o.e.p.PluginsService ] [elk01.adamhuan.com] loaded module [rank-eval] [2019-09-20T00:43:05,888][INFO ][o.e.p.PluginsService ] [elk01.adamhuan.com] loaded module [reindex] [2019-09-20T00:43:05,888][INFO ][o.e.p.PluginsService ] [elk01.adamhuan.com] loaded module [repository-url] [2019-09-20T00:43:05,889][INFO ][o.e.p.PluginsService ] [elk01.adamhuan.com] loaded module [transport-netty4] [2019-09-20T00:43:05,889][INFO ][o.e.p.PluginsService ] [elk01.adamhuan.com] loaded module [vectors] [2019-09-20T00:43:05,889][INFO ][o.e.p.PluginsService ] [elk01.adamhuan.com] loaded module [x-pack-ccr] [2019-09-20T00:43:05,889][INFO ][o.e.p.PluginsService ] [elk01.adamhuan.com] loaded module [x-pack-core] [2019-09-20T00:43:05,890][INFO ][o.e.p.PluginsService ] [elk01.adamhuan.com] loaded module [x-pack-deprecation] [2019-09-20T00:43:05,890][INFO ][o.e.p.PluginsService ] [elk01.adamhuan.com] loaded module [x-pack-graph] [2019-09-20T00:43:05,890][INFO ][o.e.p.PluginsService ] [elk01.adamhuan.com] loaded module [x-pack-ilm] [2019-09-20T00:43:05,891][INFO ][o.e.p.PluginsService ] [elk01.adamhuan.com] loaded module [x-pack-logstash] [2019-09-20T00:43:05,891][INFO ][o.e.p.PluginsService ] [elk01.adamhuan.com] loaded module [x-pack-ml] [2019-09-20T00:43:05,891][INFO ][o.e.p.PluginsService ] [elk01.adamhuan.com] loaded module [x-pack-monitoring] [2019-09-20T00:43:05,891][INFO ][o.e.p.PluginsService ] [elk01.adamhuan.com] loaded module [x-pack-rollup] [2019-09-20T00:43:05,892][INFO ][o.e.p.PluginsService ] [elk01.adamhuan.com] loaded module [x-pack-security] [2019-09-20T00:43:05,892][INFO ][o.e.p.PluginsService ] [elk01.adamhuan.com] loaded module [x-pack-sql] [2019-09-20T00:43:05,892][INFO ][o.e.p.PluginsService ] [elk01.adamhuan.com] loaded module [x-pack-voting-only-node] [2019-09-20T00:43:05,893][INFO ][o.e.p.PluginsService ] [elk01.adamhuan.com] loaded module [x-pack-watcher] [2019-09-20T00:43:05,893][INFO ][o.e.p.PluginsService ] [elk01.adamhuan.com] no plugins loaded [2019-09-20T00:43:21,086][INFO ][o.e.x.s.a.s.FileRolesStore] [elk01.adamhuan.com] parsed [0] roles from file [/etc/elasticsearch/roles.yml] [2019-09-20T00:43:24,233][INFO ][o.e.x.m.p.l.CppLogMessageHandler] [elk01.adamhuan.com] [controller/37456] [Main.cc@110] controller (64 bit): Version 7.3.1 (Build 1d93901e09ef43) Copyright (c) 2019 Elasticsearch BV [2019-09-20T00:43:25,475][DEBUG][o.e.a.ActionModule ] [elk01.adamhuan.com] Using REST wrapper from plugin org.elasticsearch.xpack.security.Security [2019-09-20T00:43:26,411][INFO ][o.e.d.DiscoveryModule ] [elk01.adamhuan.com] using discovery type [zen] and seed hosts providers [settings] [2019-09-20T00:43:28,611][INFO ][o.e.n.Node ] [elk01.adamhuan.com] initialized [2019-09-20T00:43:28,612][INFO ][o.e.n.Node ] [elk01.adamhuan.com] starting ... [2019-09-20T00:43:28,892][INFO ][o.e.t.TransportService ] [elk01.adamhuan.com] publish_address {127.0.0.1:9300}, bound_addresses {[::1]:9300}, {127.0.0.1:9300} [2019-09-20T00:43:28,910][WARN ][o.e.b.BootstrapChecks ] [elk01.adamhuan.com] the default discovery settings are unsuitable for production use; at least one of [discovery.seed_hosts, discovery.seed_providers, cluster.initial_master_nodes] must be configured [2019-09-20T00:43:28,966][INFO ][o.e.c.c.ClusterBootstrapService] [elk01.adamhuan.com] no discovery configuration found, will perform best-effort cluster bootstrapping after [3s] unless existing master is discovered [2019-09-20T00:43:31,996][INFO ][o.e.c.c.Coordinator ] [elk01.adamhuan.com] setting initial configuration to VotingConfiguration{W_kGgBjQQBCsryaFnaiFJQ} [2019-09-20T00:43:32,345][INFO ][o.e.c.s.MasterService ] [elk01.adamhuan.com] elected-as-master ([1] nodes joined)[{elk01.adamhuan.com}{W_kGgBjQQBCsryaFnaiFJQ}{_g4tIT6CRlapioRceIM9XQ}{127.0.0.1}{127.0.0.1:9300}{dim}{ml.machine_memory=1907941376, xpack.installed=true, ml.max_open_jobs=20} elect leader, _BECOME_MASTER_TASK_, _FINISH_ELECTION_], term: 1, version: 1, reason: master node changed {previous [], current [{elk01.adamhuan.com}{W_kGgBjQQBCsryaFnaiFJQ}{_g4tIT6CRlapioRceIM9XQ}{127.0.0.1}{127.0.0.1:9300}{dim}{ml.machine_memory=1907941376, xpack.installed=true, ml.max_open_jobs=20}]} [2019-09-20T00:43:32,472][INFO ][o.e.c.c.CoordinationState] [elk01.adamhuan.com] cluster UUID set to [zEPVyksYS3e98AaANTDsPg] [2019-09-20T00:43:32,529][INFO ][o.e.c.s.ClusterApplierService] [elk01.adamhuan.com] master node changed {previous [], current [{elk01.adamhuan.com}{W_kGgBjQQBCsryaFnaiFJQ}{_g4tIT6CRlapioRceIM9XQ}{127.0.0.1}{127.0.0.1:9300}{dim}{ml.machine_memory=1907941376, xpack.installed=true, ml.max_open_jobs=20}]}, term: 1, version: 1, reason: Publication{term=1, version=1} [2019-09-20T00:43:32,814][INFO ][o.e.h.AbstractHttpServerTransport] [elk01.adamhuan.com] publish_address {127.0.0.1:9200}, bound_addresses {[::1]:9200}, {127.0.0.1:9200} [2019-09-20T00:43:32,815][INFO ][o.e.n.Node ] [elk01.adamhuan.com] started [2019-09-20T00:43:32,961][INFO ][o.e.g.GatewayService ] [elk01.adamhuan.com] recovered [0] indices into cluster_state [2019-09-20T00:43:33,576][INFO ][o.e.c.m.MetaDataIndexTemplateService] [elk01.adamhuan.com] adding template [.triggered_watches] for index patterns [.triggered_watches*] [2019-09-20T00:43:33,771][INFO ][o.e.c.m.MetaDataIndexTemplateService] [elk01.adamhuan.com] adding template [.watch-history-10] for index patterns [.watcher-history-10*] [2019-09-20T00:43:33,871][INFO ][o.e.c.m.MetaDataIndexTemplateService] [elk01.adamhuan.com] adding template [.watches] for index patterns [.watches*] [2019-09-20T00:43:34,001][INFO ][o.e.c.m.MetaDataIndexTemplateService] [elk01.adamhuan.com] adding template [.monitoring-logstash] for index patterns [.monitoring-logstash-7-*] [2019-09-20T00:43:34,168][INFO ][o.e.c.m.MetaDataIndexTemplateService] [elk01.adamhuan.com] adding template [.monitoring-es] for index patterns [.monitoring-es-7-*] [2019-09-20T00:43:34,305][INFO ][o.e.c.m.MetaDataIndexTemplateService] [elk01.adamhuan.com] adding template [.monitoring-beats] for index patterns [.monitoring-beats-7-*] [2019-09-20T00:43:34,421][INFO ][o.e.c.m.MetaDataIndexTemplateService] [elk01.adamhuan.com] adding template [.monitoring-alerts-7] for index patterns [.monitoring-alerts-7] [2019-09-20T00:43:34,550][INFO ][o.e.c.m.MetaDataIndexTemplateService] [elk01.adamhuan.com] adding template [.monitoring-kibana] for index patterns [.monitoring-kibana-7-*] [2019-09-20T00:43:34,657][INFO ][o.e.x.i.a.TransportPutLifecycleAction] [elk01.adamhuan.com] adding index lifecycle policy [watch-history-ilm-policy] [2019-09-20T00:43:35,200][INFO ][o.e.l.LicenseService ] [elk01.adamhuan.com] license [67853c91-a429-4160-adbe-40ef538e6653] mode [basic] - valid [2019-09-20T00:43:35,202][INFO ][o.e.x.s.s.SecurityStatusChangeListener] [elk01.adamhuan.com] Active license is now [BASIC]; Security is disabled |
可以看到,有关初始化与激活了【basic】的【license】的信息。
这个时候,再切换成外网访问就没问题了:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 |
[root@elk01 ~]# cat /etc/elasticsearch/elasticsearch.yml | grep -v "^#" | strings path.data: /var/lib/elasticsearch path.logs: /var/log/elasticsearch network.host: 192.168.72.112 http.port: 9200 discovery.seed_hosts: ["192.168.72.112"] [root@elk01 ~]# [root@elk01 ~]# service elasticsearch status ● elasticsearch.service - Elasticsearch Loaded: loaded (/usr/lib/systemd/system/elasticsearch.service; disabled; vendor preset: disabled) Active: active (running) since Fri 2019-09-20 00:42:50 PDT; 10min ago Docs: http://www.elastic.co Main PID: 37373 (java) CGroup: /system.slice/elasticsearch.service ├─37373 /usr/share/elasticsearch/jdk/bin/java -Xms1g -Xmx1g -XX:+UseConcMa... └─37456 /usr/share/elasticsearch/modules/x-pack-ml/platform/linux-x86_64/b... Sep 20 00:42:50 elk01.adamhuan.com systemd[1]: Started Elasticsearch. Sep 20 00:42:52 elk01.adamhuan.com elasticsearch[37373]: OpenJDK 64-Bit Server VM wa.... Hint: Some lines were ellipsized, use -l to show in full. [root@elk01 ~]# [root@elk01 ~]# service elasticsearch stop Stopping elasticsearch (via systemctl): [ OK ] [root@elk01 ~]# [root@elk01 ~]# service elasticsearch start Starting elasticsearch (via systemctl): [ OK ] [root@elk01 ~]# [root@elk01 ~]# service elasticsearch status ● elasticsearch.service - Elasticsearch Loaded: loaded (/usr/lib/systemd/system/elasticsearch.service; disabled; vendor preset: disabled) Active: active (running) since Fri 2019-09-20 00:54:13 PDT; 1min 34s ago Docs: http://www.elastic.co Main PID: 38235 (java) CGroup: /system.slice/elasticsearch.service ├─38235 /usr/share/elasticsearch/jdk/bin/java -Xms1g -Xmx1g -XX:+UseConcMa... └─38316 /usr/share/elasticsearch/modules/x-pack-ml/platform/linux-x86_64/b... Sep 20 00:54:13 elk01.adamhuan.com systemd[1]: Started Elasticsearch. Sep 20 00:54:15 elk01.adamhuan.com elasticsearch[38235]: OpenJDK 64-Bit Server VM wa.... Hint: Some lines were ellipsized, use -l to show in full. [root@elk01 ~]# [root@elk01 ~]# netstat -tupln | grep 9200 tcp6 0 0 192.168.72.112:9200 :::* LISTEN 38235/java [root@elk01 ~]# |
这个过程中的日志:elasticsearch.log
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 |
[2019-09-20T00:54:20,320][INFO ][o.e.e.NodeEnvironment ] [elk01.adamhuan.com] using [1] data paths, mounts [[/ (rootfs)]], net usable_space [23gb], net total_space [27.6gb], types [rootfs] [2019-09-20T00:54:20,332][INFO ][o.e.e.NodeEnvironment ] [elk01.adamhuan.com] heap size [1015.6mb], compressed ordinary object pointers [true] [2019-09-20T00:54:20,335][INFO ][o.e.n.Node ] [elk01.adamhuan.com] node name [elk01.adamhuan.com], node ID [W_kGgBjQQBCsryaFnaiFJQ], cluster name [elasticsearch] [2019-09-20T00:54:20,336][INFO ][o.e.n.Node ] [elk01.adamhuan.com] version[7.3.1], pid[38235], build[default/rpm/4749ba6/2019-08-19T20:19:25.651794Z], OS[Linux/3.10.0-957.el7.x86_64/amd64], JVM[Oracle Corporation/OpenJDK 64-Bit Server VM/12.0.2/12.0.2+10] [2019-09-20T00:54:20,337][INFO ][o.e.n.Node ] [elk01.adamhuan.com] JVM home [/usr/share/elasticsearch/jdk] [2019-09-20T00:54:20,337][INFO ][o.e.n.Node ] [elk01.adamhuan.com] JVM arguments [-Xms1g, -Xmx1g, -XX:+UseConcMarkSweepGC, -XX:CMSInitiatingOccupancyFraction=75, -XX:+UseCMSInitiatingOccupancyOnly, -Des.networkaddress.cache.ttl=60, -Des.networkaddress.cache.negative.ttl=10, -XX:+AlwaysPreTouch, -Xss1m, -Djava.awt.headless=true, -Dfile.encoding=UTF-8, -Djna.nosys=true, -XX:-OmitStackTraceInFastThrow, -Dio.netty.noUnsafe=true, -Dio.netty.noKeySetOptimization=true, -Dio.netty.recycler.maxCapacityPerThread=0, -Dlog4j.shutdownHookEnabled=false, -Dlog4j2.disable.jmx=true, -Djava.io.tmpdir=/tmp/elasticsearch-17778505567781696615, -XX:+HeapDumpOnOutOfMemoryError, -XX:HeapDumpPath=/var/lib/elasticsearch, -XX:ErrorFile=/var/log/elasticsearch/hs_err_pid%p.log, -Xlog:gc*,gc+age=trace,safepoint:file=/var/log/elasticsearch/gc.log:utctime,pid,tags:filecount=32,filesize=64m, -Djava.locale.providers=COMPAT, -Dio.netty.allocator.type=unpooled, -XX:MaxDirectMemorySize=536870912, -Des.path.home=/usr/share/elasticsearch, -Des.path.conf=/etc/elasticsearch, -Des.distribution.flavor=default, -Des.distribution.type=rpm, -Des.bundled_jdk=true] [2019-09-20T00:54:26,441][INFO ][o.e.p.PluginsService ] [elk01.adamhuan.com] loaded module [aggs-matrix-stats] [2019-09-20T00:54:26,441][INFO ][o.e.p.PluginsService ] [elk01.adamhuan.com] loaded module [analysis-common] [2019-09-20T00:54:26,442][INFO ][o.e.p.PluginsService ] [elk01.adamhuan.com] loaded module [data-frame] [2019-09-20T00:54:26,442][INFO ][o.e.p.PluginsService ] [elk01.adamhuan.com] loaded module [flattened] [2019-09-20T00:54:26,442][INFO ][o.e.p.PluginsService ] [elk01.adamhuan.com] loaded module [ingest-common] [2019-09-20T00:54:26,443][INFO ][o.e.p.PluginsService ] [elk01.adamhuan.com] loaded module [ingest-geoip] [2019-09-20T00:54:26,443][INFO ][o.e.p.PluginsService ] [elk01.adamhuan.com] loaded module [ingest-user-agent] [2019-09-20T00:54:26,443][INFO ][o.e.p.PluginsService ] [elk01.adamhuan.com] loaded module [lang-expression] [2019-09-20T00:54:26,443][INFO ][o.e.p.PluginsService ] [elk01.adamhuan.com] loaded module [lang-mustache] [2019-09-20T00:54:26,444][INFO ][o.e.p.PluginsService ] [elk01.adamhuan.com] loaded module [lang-painless] [2019-09-20T00:54:26,444][INFO ][o.e.p.PluginsService ] [elk01.adamhuan.com] loaded module [mapper-extras] [2019-09-20T00:54:26,444][INFO ][o.e.p.PluginsService ] [elk01.adamhuan.com] loaded module [parent-join] [2019-09-20T00:54:26,445][INFO ][o.e.p.PluginsService ] [elk01.adamhuan.com] loaded module [percolator] [2019-09-20T00:54:26,445][INFO ][o.e.p.PluginsService ] [elk01.adamhuan.com] loaded module [rank-eval] [2019-09-20T00:54:26,445][INFO ][o.e.p.PluginsService ] [elk01.adamhuan.com] loaded module [reindex] [2019-09-20T00:54:26,446][INFO ][o.e.p.PluginsService ] [elk01.adamhuan.com] loaded module [repository-url] [2019-09-20T00:54:26,446][INFO ][o.e.p.PluginsService ] [elk01.adamhuan.com] loaded module [transport-netty4] [2019-09-20T00:54:26,446][INFO ][o.e.p.PluginsService ] [elk01.adamhuan.com] loaded module [vectors] [2019-09-20T00:54:26,446][INFO ][o.e.p.PluginsService ] [elk01.adamhuan.com] loaded module [x-pack-ccr] [2019-09-20T00:54:26,447][INFO ][o.e.p.PluginsService ] [elk01.adamhuan.com] loaded module [x-pack-core] [2019-09-20T00:54:26,447][INFO ][o.e.p.PluginsService ] [elk01.adamhuan.com] loaded module [x-pack-deprecation] [2019-09-20T00:54:26,447][INFO ][o.e.p.PluginsService ] [elk01.adamhuan.com] loaded module [x-pack-graph] [2019-09-20T00:54:26,448][INFO ][o.e.p.PluginsService ] [elk01.adamhuan.com] loaded module [x-pack-ilm] [2019-09-20T00:54:26,448][INFO ][o.e.p.PluginsService ] [elk01.adamhuan.com] loaded module [x-pack-logstash] [2019-09-20T00:54:26,448][INFO ][o.e.p.PluginsService ] [elk01.adamhuan.com] loaded module [x-pack-ml] [2019-09-20T00:54:26,448][INFO ][o.e.p.PluginsService ] [elk01.adamhuan.com] loaded module [x-pack-monitoring] [2019-09-20T00:54:26,449][INFO ][o.e.p.PluginsService ] [elk01.adamhuan.com] loaded module [x-pack-rollup] [2019-09-20T00:54:26,449][INFO ][o.e.p.PluginsService ] [elk01.adamhuan.com] loaded module [x-pack-security] [2019-09-20T00:54:26,449][INFO ][o.e.p.PluginsService ] [elk01.adamhuan.com] loaded module [x-pack-sql] [2019-09-20T00:54:26,450][INFO ][o.e.p.PluginsService ] [elk01.adamhuan.com] loaded module [x-pack-voting-only-node] [2019-09-20T00:54:26,450][INFO ][o.e.p.PluginsService ] [elk01.adamhuan.com] loaded module [x-pack-watcher] [2019-09-20T00:54:26,451][INFO ][o.e.p.PluginsService ] [elk01.adamhuan.com] no plugins loaded [2019-09-20T00:54:41,649][INFO ][o.e.x.s.a.s.FileRolesStore] [elk01.adamhuan.com] parsed [0] roles from file [/etc/elasticsearch/roles.yml] [2019-09-20T00:54:44,097][INFO ][o.e.x.m.p.l.CppLogMessageHandler] [elk01.adamhuan.com] [controller/38316] [Main.cc@110] controller (64 bit): Version 7.3.1 (Build 1d93901e09ef43) Copyright (c) 2019 Elasticsearch BV [2019-09-20T00:54:45,213][DEBUG][o.e.a.ActionModule ] [elk01.adamhuan.com] Using REST wrapper from plugin org.elasticsearch.xpack.security.Security [2019-09-20T00:54:46,332][INFO ][o.e.d.DiscoveryModule ] [elk01.adamhuan.com] using discovery type [zen] and seed hosts providers [settings] [2019-09-20T00:54:49,029][INFO ][o.e.n.Node ] [elk01.adamhuan.com] initialized [2019-09-20T00:54:49,030][INFO ][o.e.n.Node ] [elk01.adamhuan.com] starting ... [2019-09-20T00:54:49,493][INFO ][o.e.t.TransportService ] [elk01.adamhuan.com] publish_address {192.168.72.112:9300}, bound_addresses {192.168.72.112:9300} [2019-09-20T00:54:49,518][INFO ][o.e.b.BootstrapChecks ] [elk01.adamhuan.com] bound or publishing to a non-loopback address, enforcing bootstrap checks [2019-09-20T00:54:49,703][INFO ][o.e.c.c.Coordinator ] [elk01.adamhuan.com] cluster UUID [zEPVyksYS3e98AaANTDsPg] [2019-09-20T00:54:49,972][INFO ][o.e.c.s.MasterService ] [elk01.adamhuan.com] elected-as-master ([1] nodes joined)[{elk01.adamhuan.com}{W_kGgBjQQBCsryaFnaiFJQ}{gZvSOJEoQmG6pNqQpOv2Ag}{192.168.72.112}{192.168.72.112:9300}{dim}{ml.machine_memory=1907941376, xpack.installed=true, ml.max_open_jobs=20} elect leader, _BECOME_MASTER_TASK_, _FINISH_ELECTION_], term: 2, version: 16, reason: master node changed {previous [], current [{elk01.adamhuan.com}{W_kGgBjQQBCsryaFnaiFJQ}{gZvSOJEoQmG6pNqQpOv2Ag}{192.168.72.112}{192.168.72.112:9300}{dim}{ml.machine_memory=1907941376, xpack.installed=true, ml.max_open_jobs=20}]} [2019-09-20T00:54:50,194][INFO ][o.e.c.s.ClusterApplierService] [elk01.adamhuan.com] master node changed {previous [], current [{elk01.adamhuan.com}{W_kGgBjQQBCsryaFnaiFJQ}{gZvSOJEoQmG6pNqQpOv2Ag}{192.168.72.112}{192.168.72.112:9300}{dim}{ml.machine_memory=1907941376, xpack.installed=true, ml.max_open_jobs=20}]}, term: 2, version: 16, reason: Publication{term=2, version=16} [2019-09-20T00:54:50,365][INFO ][o.e.h.AbstractHttpServerTransport] [elk01.adamhuan.com] publish_address {192.168.72.112:9200}, bound_addresses {192.168.72.112:9200} [2019-09-20T00:54:50,366][INFO ][o.e.n.Node ] [elk01.adamhuan.com] started [2019-09-20T00:54:51,124][INFO ][o.e.l.LicenseService ] [elk01.adamhuan.com] license [67853c91-a429-4160-adbe-40ef538e6653] mode [basic] - valid [2019-09-20T00:54:51,126][INFO ][o.e.x.s.s.SecurityStatusChangeListener] [elk01.adamhuan.com] Active license is now [BASIC]; Security is disabled [2019-09-20T00:54:51,155][INFO ][o.e.g.GatewayService ] [elk01.adamhuan.com] recovered [0] indices into cluster_state |
再次查看下ES的状态:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 |
[root@elk01 ~]# curl http://192.168.72.112:9200 { "name" : "elk01.adamhuan.com", "cluster_name" : "elasticsearch", "cluster_uuid" : "zEPVyksYS3e98AaANTDsPg", "version" : { "number" : "7.3.1", "build_flavor" : "default", "build_type" : "rpm", "build_hash" : "4749ba6", "build_date" : "2019-08-19T20:19:25.651794Z", "build_snapshot" : false, "lucene_version" : "8.1.0", "minimum_wire_compatibility_version" : "6.8.0", "minimum_index_compatibility_version" : "6.0.0-beta1" }, "tagline" : "You Know, for Search" } [root@elk01 ~]# [root@elk01 ~]# curl http://192.168.72.112:9200/_cluster/health?pretty { "cluster_name" : "elasticsearch", "status" : "green", "timed_out" : false, "number_of_nodes" : 1, "number_of_data_nodes" : 1, "active_primary_shards" : 0, "active_shards" : 0, "relocating_shards" : 0, "initializing_shards" : 0, "unassigned_shards" : 0, "delayed_unassigned_shards" : 0, "number_of_pending_tasks" : 0, "number_of_in_flight_fetch" : 0, "task_max_waiting_in_queue_millis" : 0, "active_shards_percent_as_number" : 100.0 } [root@elk01 ~]# [root@elk01 ~]# curl http://192.168.72.112:9200/_xpack/license { "license" : { "status" : "active", "uid" : "67853c91-a429-4160-adbe-40ef538e6653", "type" : "basic", "issue_date" : "2019-09-20T07:43:34.750Z", "issue_date_in_millis" : 1568965414750, "max_nodes" : 1000, "issued_to" : "elasticsearch", "issuer" : "elasticsearch", "start_date_in_millis" : -1 } } [root@elk01 ~]# |
至此,ES的状态,确定没问题了。
因此,前面,文首出现的问题,并不是因为版本问题,而是因为ElasticSearch没有初始化导致的。
启动服务:
Kibana
1 2 3 4 5 6 7 8 9 10 11 12 13 |
[root@elk01 ~]# service kibana status kibana is not running [root@elk01 ~]# netstat -tupln | grep 5601 [root@elk01 ~]# [root@elk01 ~]# service kibana start kibana started [root@elk01 ~]# [root@elk01 ~]# service kibana status kibana is running [root@elk01 ~]# [root@elk01 ~]# netstat -tupln | grep 5601 tcp 0 0 192.168.72.112:5601 0.0.0.0:* LISTEN 38761/node [root@elk01 ~]# |
可以看到,ES没问题之后,Kibana就没问题了。
这个过程中的Kibana的日志:kibana.stdout
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 |
{"type":"log","@timestamp":"2019-09-20T08:01:29Z","tags":["info","plugins-system"],"pid":38761,"message":"Setting up [1] plugins: [translations]"} {"type":"log","@timestamp":"2019-09-20T08:01:29Z","tags":["info","plugins","translations"],"pid":38761,"message":"Setting up plugin"} {"type":"log","@timestamp":"2019-09-20T08:01:29Z","tags":["info","plugins-system"],"pid":38761,"message":"Starting [1] plugins: [translations]"} {"type":"log","@timestamp":"2019-09-20T08:01:42Z","tags":["status","plugin:kibana@7.3.1","info"],"pid":38761,"state":"green","message":"Status changed from uninitialized to green - Ready","prevState":"uninitialized","prevMsg":"uninitialized"} {"type":"log","@timestamp":"2019-09-20T08:01:42Z","tags":["status","plugin:elasticsearch@7.3.1","info"],"pid":38761,"state":"yellow","message":"Status changed from uninitialized to yellow - Waiting for Elasticsearch","prevState":"uninitialized","prevMsg":"uninitialized"} {"type":"log","@timestamp":"2019-09-20T08:01:42Z","tags":["status","plugin:xpack_main@7.3.1","info"],"pid":38761,"state":"yellow","message":"Status changed from uninitialized to yellow - Waiting for Elasticsearch","prevState":"uninitialized","prevMsg":"uninitialized"} {"type":"log","@timestamp":"2019-09-20T08:01:42Z","tags":["status","plugin:telemetry@7.3.1","info"],"pid":38761,"state":"green","message":"Status changed from uninitialized to green - Ready","prevState":"uninitialized","prevMsg":"uninitialized"} {"type":"log","@timestamp":"2019-09-20T08:01:42Z","tags":["status","plugin:graph@7.3.1","info"],"pid":38761,"state":"yellow","message":"Status changed from uninitialized to yellow - Waiting for Elasticsearch","prevState":"uninitialized","prevMsg":"uninitialized"} {"type":"log","@timestamp":"2019-09-20T08:01:42Z","tags":["status","plugin:monitoring@7.3.1","info"],"pid":38761,"state":"green","message":"Status changed from uninitialized to green - Ready","prevState":"uninitialized","prevMsg":"uninitialized"} {"type":"log","@timestamp":"2019-09-20T08:01:42Z","tags":["status","plugin:spaces@7.3.1","info"],"pid":38761,"state":"yellow","message":"Status changed from uninitialized to yellow - Waiting for Elasticsearch","prevState":"uninitialized","prevMsg":"uninitialized"} {"type":"log","@timestamp":"2019-09-20T08:01:42Z","tags":["security","warning"],"pid":38761,"message":"Generating a random key for xpack.security.encryptionKey. To prevent sessions from being invalidated on restart, please set xpack.security.encryptionKey in kibana.yml"} {"type":"log","@timestamp":"2019-09-20T08:01:42Z","tags":["security","warning"],"pid":38761,"message":"Session cookies will be transmitted over insecure connections. This is not recommended."} {"type":"log","@timestamp":"2019-09-20T08:01:42Z","tags":["status","plugin:security@7.3.1","info"],"pid":38761,"state":"green","message":"Status changed from uninitialized to green - Ready","prevState":"uninitialized","prevMsg":"uninitialized"} {"type":"log","@timestamp":"2019-09-20T08:01:42Z","tags":["status","plugin:searchprofiler@7.3.1","info"],"pid":38761,"state":"yellow","message":"Status changed from uninitialized to yellow - Waiting for Elasticsearch","prevState":"uninitialized","prevMsg":"uninitialized"} {"type":"log","@timestamp":"2019-09-20T08:01:42Z","tags":["status","plugin:ml@7.3.1","info"],"pid":38761,"state":"yellow","message":"Status changed from uninitialized to yellow - Waiting for Elasticsearch","prevState":"uninitialized","prevMsg":"uninitialized"} {"type":"log","@timestamp":"2019-09-20T08:01:42Z","tags":["status","plugin:tilemap@7.3.1","info"],"pid":38761,"state":"yellow","message":"Status changed from uninitialized to yellow - Waiting for Elasticsearch","prevState":"uninitialized","prevMsg":"uninitialized"} {"type":"log","@timestamp":"2019-09-20T08:01:42Z","tags":["status","plugin:watcher@7.3.1","info"],"pid":38761,"state":"yellow","message":"Status changed from uninitialized to yellow - Waiting for Elasticsearch","prevState":"uninitialized","prevMsg":"uninitialized"} {"type":"log","@timestamp":"2019-09-20T08:01:42Z","tags":["status","plugin:grokdebugger@7.3.1","info"],"pid":38761,"state":"yellow","message":"Status changed from uninitialized to yellow - Waiting for Elasticsearch","prevState":"uninitialized","prevMsg":"uninitialized"} {"type":"log","@timestamp":"2019-09-20T08:01:42Z","tags":["status","plugin:dashboard_mode@7.3.1","info"],"pid":38761,"state":"green","message":"Status changed from uninitialized to green - Ready","prevState":"uninitialized","prevMsg":"uninitialized"} {"type":"log","@timestamp":"2019-09-20T08:01:42Z","tags":["status","plugin:logstash@7.3.1","info"],"pid":38761,"state":"yellow","message":"Status changed from uninitialized to yellow - Waiting for Elasticsearch","prevState":"uninitialized","prevMsg":"uninitialized"} {"type":"log","@timestamp":"2019-09-20T08:01:42Z","tags":["status","plugin:beats_management@7.3.1","info"],"pid":38761,"state":"yellow","message":"Status changed from uninitialized to yellow - Waiting for Elasticsearch","prevState":"uninitialized","prevMsg":"uninitialized"} {"type":"log","@timestamp":"2019-09-20T08:01:42Z","tags":["status","plugin:apm_oss@7.3.1","info"],"pid":38761,"state":"green","message":"Status changed from uninitialized to green - Ready","prevState":"uninitialized","prevMsg":"uninitialized"} {"type":"log","@timestamp":"2019-09-20T08:01:43Z","tags":["status","plugin:apm@7.3.1","info"],"pid":38761,"state":"green","message":"Status changed from uninitialized to green - Ready","prevState":"uninitialized","prevMsg":"uninitialized"} {"type":"log","@timestamp":"2019-09-20T08:01:43Z","tags":["status","plugin:code@7.3.1","info"],"pid":38761,"state":"green","message":"Status changed from uninitialized to green - Ready","prevState":"uninitialized","prevMsg":"uninitialized"} {"type":"log","@timestamp":"2019-09-20T08:01:43Z","tags":["status","plugin:tile_map@7.3.1","info"],"pid":38761,"state":"green","message":"Status changed from uninitialized to green - Ready","prevState":"uninitialized","prevMsg":"uninitialized"} {"type":"log","@timestamp":"2019-09-20T08:01:43Z","tags":["status","plugin:task_manager@7.3.1","info"],"pid":38761,"state":"green","message":"Status changed from uninitialized to green - Ready","prevState":"uninitialized","prevMsg":"uninitialized"} {"type":"log","@timestamp":"2019-09-20T08:01:43Z","tags":["status","plugin:maps@7.3.1","info"],"pid":38761,"state":"yellow","message":"Status changed from uninitialized to yellow - Waiting for Elasticsearch","prevState":"uninitialized","prevMsg":"uninitialized"} {"type":"log","@timestamp":"2019-09-20T08:01:43Z","tags":["status","plugin:interpreter@7.3.1","info"],"pid":38761,"state":"green","message":"Status changed from uninitialized to green - Ready","prevState":"uninitialized","prevMsg":"uninitialized"} {"type":"log","@timestamp":"2019-09-20T08:01:43Z","tags":["status","plugin:canvas@7.3.1","info"],"pid":38761,"state":"green","message":"Status changed from uninitialized to green - Ready","prevState":"uninitialized","prevMsg":"uninitialized"} {"type":"log","@timestamp":"2019-09-20T08:01:43Z","tags":["status","plugin:license_management@7.3.1","info"],"pid":38761,"state":"green","message":"Status changed from uninitialized to green - Ready","prevState":"uninitialized","prevMsg":"uninitialized"} {"type":"log","@timestamp":"2019-09-20T08:01:43Z","tags":["status","plugin:cloud@7.3.1","info"],"pid":38761,"state":"green","message":"Status changed from uninitialized to green - Ready","prevState":"uninitialized","prevMsg":"uninitialized"} {"type":"log","@timestamp":"2019-09-20T08:01:43Z","tags":["status","plugin:index_management@7.3.1","info"],"pid":38761,"state":"yellow","message":"Status changed from uninitialized to yellow - Waiting for Elasticsearch","prevState":"uninitialized","prevMsg":"uninitialized"} {"type":"log","@timestamp":"2019-09-20T08:01:43Z","tags":["status","plugin:console@7.3.1","info"],"pid":38761,"state":"green","message":"Status changed from uninitialized to green - Ready","prevState":"uninitialized","prevMsg":"uninitialized"} {"type":"log","@timestamp":"2019-09-20T08:01:43Z","tags":["status","plugin:console_extensions@7.3.1","info"],"pid":38761,"state":"green","message":"Status changed from uninitialized to green - Ready","prevState":"uninitialized","prevMsg":"uninitialized"} {"type":"log","@timestamp":"2019-09-20T08:01:43Z","tags":["status","plugin:notifications@7.3.1","info"],"pid":38761,"state":"green","message":"Status changed from uninitialized to green - Ready","prevState":"uninitialized","prevMsg":"uninitialized"} {"type":"log","@timestamp":"2019-09-20T08:01:43Z","tags":["status","plugin:index_lifecycle_management@7.3.1","info"],"pid":38761,"state":"yellow","message":"Status changed from uninitialized to yellow - Waiting for Elasticsearch","prevState":"uninitialized","prevMsg":"uninitialized"} {"type":"log","@timestamp":"2019-09-20T08:01:43Z","tags":["status","plugin:metrics@7.3.1","info"],"pid":38761,"state":"green","message":"Status changed from uninitialized to green - Ready","prevState":"uninitialized","prevMsg":"uninitialized"} {"type":"log","@timestamp":"2019-09-20T08:01:43Z","tags":["status","plugin:infra@7.3.1","info"],"pid":38761,"state":"green","message":"Status changed from uninitialized to green - Ready","prevState":"uninitialized","prevMsg":"uninitialized"} {"type":"log","@timestamp":"2019-09-20T08:01:43Z","tags":["status","plugin:rollup@7.3.1","info"],"pid":38761,"state":"yellow","message":"Status changed from uninitialized to yellow - Waiting for Elasticsearch","prevState":"uninitialized","prevMsg":"uninitialized"} {"type":"log","@timestamp":"2019-09-20T08:01:43Z","tags":["info","siem"],"pid":38761,"message":"Plugin initializing"} {"type":"log","@timestamp":"2019-09-20T08:01:43Z","tags":["info","siem"],"pid":38761,"message":"Plugin done initializing"} {"type":"log","@timestamp":"2019-09-20T08:01:43Z","tags":["status","plugin:siem@7.3.1","info"],"pid":38761,"state":"green","message":"Status changed from uninitialized to green - Ready","prevState":"uninitialized","prevMsg":"uninitialized"} {"type":"log","@timestamp":"2019-09-20T08:01:43Z","tags":["status","plugin:remote_clusters@7.3.1","info"],"pid":38761,"state":"yellow","message":"Status changed from uninitialized to yellow - Waiting for Elasticsearch","prevState":"uninitialized","prevMsg":"uninitialized"} {"type":"log","@timestamp":"2019-09-20T08:01:43Z","tags":["status","plugin:cross_cluster_replication@7.3.1","info"],"pid":38761,"state":"yellow","message":"Status changed from uninitialized to yellow - Waiting for Elasticsearch","prevState":"uninitialized","prevMsg":"uninitialized"} {"type":"log","@timestamp":"2019-09-20T08:01:43Z","tags":["status","plugin:upgrade_assistant@7.3.1","info"],"pid":38761,"state":"green","message":"Status changed from uninitialized to green - Ready","prevState":"uninitialized","prevMsg":"uninitialized"} {"type":"log","@timestamp":"2019-09-20T08:01:43Z","tags":["status","plugin:uptime@7.3.1","info"],"pid":38761,"state":"green","message":"Status changed from uninitialized to green - Ready","prevState":"uninitialized","prevMsg":"uninitialized"} {"type":"log","@timestamp":"2019-09-20T08:01:43Z","tags":["status","plugin:oss_telemetry@7.3.1","info"],"pid":38761,"state":"green","message":"Status changed from uninitialized to green - Ready","prevState":"uninitialized","prevMsg":"uninitialized"} {"type":"log","@timestamp":"2019-09-20T08:01:43Z","tags":["status","plugin:file_upload@7.3.1","info"],"pid":38761,"state":"yellow","message":"Status changed from uninitialized to yellow - Waiting for Elasticsearch","prevState":"uninitialized","prevMsg":"uninitialized"} {"type":"log","@timestamp":"2019-09-20T08:01:43Z","tags":["warning","encrypted_saved_objects"],"pid":38761,"message":"Generating a random key for xpack.encrypted_saved_objects.encryptionKey. To be able to decrypt encrypted saved objects attributes after restart, please set xpack.encrypted_saved_objects.encryptionKey in kibana.yml"} {"type":"log","@timestamp":"2019-09-20T08:01:43Z","tags":["status","plugin:encrypted_saved_objects@7.3.1","info"],"pid":38761,"state":"green","message":"Status changed from uninitialized to green - Ready","prevState":"uninitialized","prevMsg":"uninitialized"} {"type":"log","@timestamp":"2019-09-20T08:01:43Z","tags":["status","plugin:snapshot_restore@7.3.1","info"],"pid":38761,"state":"yellow","message":"Status changed from uninitialized to yellow - Waiting for Elasticsearch","prevState":"uninitialized","prevMsg":"uninitialized"} {"type":"log","@timestamp":"2019-09-20T08:01:43Z","tags":["status","plugin:actions@7.3.1","info"],"pid":38761,"state":"green","message":"Status changed from uninitialized to green - Ready","prevState":"uninitialized","prevMsg":"uninitialized"} {"type":"log","@timestamp":"2019-09-20T08:01:43Z","tags":["status","plugin:alerting@7.3.1","info"],"pid":38761,"state":"green","message":"Status changed from uninitialized to green - Ready","prevState":"uninitialized","prevMsg":"uninitialized"} {"type":"log","@timestamp":"2019-09-20T08:01:43Z","tags":["status","plugin:data@7.3.1","info"],"pid":38761,"state":"green","message":"Status changed from uninitialized to green - Ready","prevState":"uninitialized","prevMsg":"uninitialized"} {"type":"log","@timestamp":"2019-09-20T08:01:43Z","tags":["status","plugin:timelion@7.3.1","info"],"pid":38761,"state":"green","message":"Status changed from uninitialized to green - Ready","prevState":"uninitialized","prevMsg":"uninitialized"} {"type":"log","@timestamp":"2019-09-20T08:01:43Z","tags":["status","plugin:ui_metric@7.3.1","info"],"pid":38761,"state":"green","message":"Status changed from uninitialized to green - Ready","prevState":"uninitialized","prevMsg":"uninitialized"} {"type":"log","@timestamp":"2019-09-20T08:01:43Z","tags":["status","plugin:visualizations@7.3.1","info"],"pid":38761,"state":"green","message":"Status changed from uninitialized to green - Ready","prevState":"uninitialized","prevMsg":"uninitialized"} {"type":"log","@timestamp":"2019-09-20T08:01:44Z","tags":["status","plugin:elasticsearch@7.3.1","info"],"pid":38761,"state":"green","message":"Status changed from yellow to green - Ready","prevState":"yellow","prevMsg":"Waiting for Elasticsearch"} {"type":"log","@timestamp":"2019-09-20T08:01:45Z","tags":["license","info","xpack"],"pid":38761,"message":"Imported license information from Elasticsearch for the [data] cluster: mode: basic | status: active"} {"type":"log","@timestamp":"2019-09-20T08:01:45Z","tags":["status","plugin:xpack_main@7.3.1","info"],"pid":38761,"state":"green","message":"Status changed from yellow to green - Ready","prevState":"yellow","prevMsg":"Waiting for Elasticsearch"} {"type":"log","@timestamp":"2019-09-20T08:01:45Z","tags":["status","plugin:graph@7.3.1","info"],"pid":38761,"state":"green","message":"Status changed from yellow to green - Ready","prevState":"yellow","prevMsg":"Waiting for Elasticsearch"} {"type":"log","@timestamp":"2019-09-20T08:01:45Z","tags":["status","plugin:searchprofiler@7.3.1","info"],"pid":38761,"state":"green","message":"Status changed from yellow to green - Ready","prevState":"yellow","prevMsg":"Waiting for Elasticsearch"} {"type":"log","@timestamp":"2019-09-20T08:01:45Z","tags":["status","plugin:ml@7.3.1","info"],"pid":38761,"state":"green","message":"Status changed from yellow to green - Ready","prevState":"yellow","prevMsg":"Waiting for Elasticsearch"} {"type":"log","@timestamp":"2019-09-20T08:01:45Z","tags":["status","plugin:tilemap@7.3.1","info"],"pid":38761,"state":"green","message":"Status changed from yellow to green - Ready","prevState":"yellow","prevMsg":"Waiting for Elasticsearch"} {"type":"log","@timestamp":"2019-09-20T08:01:45Z","tags":["status","plugin:watcher@7.3.1","info"],"pid":38761,"state":"green","message":"Status changed from yellow to green - Ready","prevState":"yellow","prevMsg":"Waiting for Elasticsearch"} {"type":"log","@timestamp":"2019-09-20T08:01:45Z","tags":["status","plugin:grokdebugger@7.3.1","info"],"pid":38761,"state":"green","message":"Status changed from yellow to green - Ready","prevState":"yellow","prevMsg":"Waiting for Elasticsearch"} {"type":"log","@timestamp":"2019-09-20T08:01:45Z","tags":["status","plugin:logstash@7.3.1","info"],"pid":38761,"state":"green","message":"Status changed from yellow to green - Ready","prevState":"yellow","prevMsg":"Waiting for Elasticsearch"} {"type":"log","@timestamp":"2019-09-20T08:01:45Z","tags":["status","plugin:beats_management@7.3.1","info"],"pid":38761,"state":"green","message":"Status changed from yellow to green - Ready","prevState":"yellow","prevMsg":"Waiting for Elasticsearch"} {"type":"log","@timestamp":"2019-09-20T08:01:45Z","tags":["status","plugin:index_management@7.3.1","info"],"pid":38761,"state":"green","message":"Status changed from yellow to green - Ready","prevState":"yellow","prevMsg":"Waiting for Elasticsearch"} {"type":"log","@timestamp":"2019-09-20T08:01:45Z","tags":["status","plugin:index_lifecycle_management@7.3.1","info"],"pid":38761,"state":"green","message":"Status changed from yellow to green - Ready","prevState":"yellow","prevMsg":"Waiting for Elasticsearch"} {"type":"log","@timestamp":"2019-09-20T08:01:45Z","tags":["status","plugin:rollup@7.3.1","info"],"pid":38761,"state":"green","message":"Status changed from yellow to green - Ready","prevState":"yellow","prevMsg":"Waiting for Elasticsearch"} {"type":"log","@timestamp":"2019-09-20T08:01:45Z","tags":["status","plugin:remote_clusters@7.3.1","info"],"pid":38761,"state":"green","message":"Status changed from yellow to green - Ready","prevState":"yellow","prevMsg":"Waiting for Elasticsearch"} {"type":"log","@timestamp":"2019-09-20T08:01:45Z","tags":["status","plugin:cross_cluster_replication@7.3.1","info"],"pid":38761,"state":"green","message":"Status changed from yellow to green - Ready","prevState":"yellow","prevMsg":"Waiting for Elasticsearch"} {"type":"log","@timestamp":"2019-09-20T08:01:45Z","tags":["status","plugin:file_upload@7.3.1","info"],"pid":38761,"state":"green","message":"Status changed from yellow to green - Ready","prevState":"yellow","prevMsg":"Waiting for Elasticsearch"} {"type":"log","@timestamp":"2019-09-20T08:01:45Z","tags":["status","plugin:snapshot_restore@7.3.1","info"],"pid":38761,"state":"green","message":"Status changed from yellow to green - Ready","prevState":"yellow","prevMsg":"Waiting for Elasticsearch"} {"type":"log","@timestamp":"2019-09-20T08:01:45Z","tags":["info","monitoring","kibana-monitoring"],"pid":38761,"message":"Starting monitoring stats collection"} {"type":"log","@timestamp":"2019-09-20T08:01:45Z","tags":["status","plugin:maps@7.3.1","info"],"pid":38761,"state":"green","message":"Status changed from yellow to green - Ready","prevState":"yellow","prevMsg":"Waiting for Elasticsearch"} {"type":"log","@timestamp":"2019-09-20T08:01:48Z","tags":["reporting","browser-driver","warning"],"pid":38761,"message":"Enabling the Chromium sandbox provides an additional layer of protection."} {"type":"log","@timestamp":"2019-09-20T08:01:48Z","tags":["reporting","warning"],"pid":38761,"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":"2019-09-20T08:01:48Z","tags":["status","plugin:reporting@7.3.1","info"],"pid":38761,"state":"green","message":"Status changed from uninitialized to green - Ready","prevState":"uninitialized","prevMsg":"uninitialized"} {"type":"log","@timestamp":"2019-09-20T08:01:49Z","tags":["info","task_manager"],"pid":38761,"message":"Installing .kibana_task_manager index template version: 7030199."} {"type":"log","@timestamp":"2019-09-20T08:01:50Z","tags":["info","task_manager"],"pid":38761,"message":"Installed .kibana_task_manager index template: version 7030199 (API version 1)"} {"type":"error","@timestamp":"2019-09-20T08:01:55Z","tags":["warning","stats-collection"],"pid":38761,"level":"error","error":{"message":"[index_not_found_exception] no such index [.kibana], with { resource.type=\"index_or_alias\" & resource.id=\".kibana\" & index_uuid=\"_na_\" & index=\".kibana\" }","name":"Error","stack":"[index_not_found_exception] no such index [.kibana], with { resource.type=\"index_or_alias\" & resource.id=\".kibana\" & index_uuid=\"_na_\" & index=\".kibana\" } :: {\"path\":\"/.kibana/_search\",\"query\":{},\"body\":\"{\\\"track_total_hits\\\":true,\\\"query\\\":{\\\"term\\\":{\\\"type\\\":{\\\"value\\\":\\\"space\\\"}}},\\\"aggs\\\":{\\\"disabledFeatures\\\":{\\\"terms\\\":{\\\"field\\\":\\\"space.disabledFeatures\\\",\\\"include\\\":[\\\"discover\\\",\\\"visualize\\\",\\\"dashboard\\\",\\\"dev_tools\\\",\\\"advancedSettings\\\",\\\"indexPatterns\\\",\\\"savedObjectsManagement\\\",\\\"timelion\\\",\\\"graph\\\",\\\"monitoring\\\",\\\"ml\\\",\\\"apm\\\",\\\"maps\\\",\\\"canvas\\\",\\\"infrastructure\\\",\\\"logs\\\",\\\"siem\\\",\\\"uptime\\\"],\\\"size\\\":18}}},\\\"size\\\":0}\",\"statusCode\":404,\"response\":\"{\\\"error\\\":{\\\"root_cause\\\":[{\\\"type\\\":\\\"index_not_found_exception\\\",\\\"reason\\\":\\\"no such index [.kibana]\\\",\\\"resource.type\\\":\\\"index_or_alias\\\",\\\"resource.id\\\":\\\".kibana\\\",\\\"index_uuid\\\":\\\"_na_\\\",\\\"index\\\":\\\".kibana\\\"}],\\\"type\\\":\\\"index_not_found_exception\\\",\\\"reason\\\":\\\"no such index [.kibana]\\\",\\\"resource.type\\\":\\\"index_or_alias\\\",\\\"resource.id\\\":\\\".kibana\\\",\\\"index_uuid\\\":\\\"_na_\\\",\\\"index\\\":\\\".kibana\\\"},\\\"status\\\":404}\"}\n at respond (/usr/share/kibana/node_modules/elasticsearch/src/lib/transport.js:315:15)\n at checkRespForFailure (/usr/share/kibana/node_modules/elasticsearch/src/lib/transport.js:274:7)\n at HttpConnector.<anonymous> (/usr/share/kibana/node_modules/elasticsearch/src/lib/connectors/http.js:166: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)"},"message":"[index_not_found_exception] no such index [.kibana], with { resource.type=\"index_or_alias\" & resource.id=\".kibana\" & index_uuid=\"_na_\" & index=\".kibana\" }"} {"type":"log","@timestamp":"2019-09-20T08:01:55Z","tags":["warning","stats-collection"],"pid":38761,"message":"Unable to fetch data from spaces collector"} {"type":"log","@timestamp":"2019-09-20T08:01:55Z","tags":["info","migrations"],"pid":38761,"message":"Creating index .kibana_1."} {"type":"log","@timestamp":"2019-09-20T08:01:56Z","tags":["info","migrations"],"pid":38761,"message":"Pointing alias .kibana to .kibana_1."} {"type":"log","@timestamp":"2019-09-20T08:01:56Z","tags":["info","migrations"],"pid":38761,"message":"Finished in 777ms."} {"type":"log","@timestamp":"2019-09-20T08:01:56Z","tags":["listening","info"],"pid":38761,"message":"Server running at http://192.168.72.112:5601"} {"type":"log","@timestamp":"2019-09-20T08:01:56Z","tags":["info","http","server","Kibana"],"pid":38761,"message":"http server running"} {"type":"log","@timestamp":"2019-09-20T08:01:58Z","tags":["status","plugin:spaces@7.3.1","info"],"pid":38761,"state":"green","message":"Status changed from yellow to green - Ready","prevState":"yellow","prevMsg":"Waiting for Elasticsearch"} |
上面,两个服务都没问题后,WEB浏览器访问一下Kibana:
http://192.168.72.112:5601/app/kibana

至此,文首的问题就彻底解决了。