您好,登錄后才能下訂單哦!
這篇文章將為大家詳細講解有關如何安裝Kibana,小編覺得挺實用的,因此分享給大家做個參考,希望大家閱讀完這篇文章后可以有所收獲。
官網地址:https://www.elastic.co/cn/
Kibana配置文件參考:https://www.elastic.co/guide/en/kibana/5.x/settings.html
Kibana是ElasticSearch的可視化平臺,依賴ElasticSearch,需要優先安裝ElasticSearch。
注意:kibana的版本必須與Elasticsearch版本一致
修改配置文件:找到kibana下的config文件夾,編輯kibana.yml配置文件,添加如下配置:
server.port: 5601 server.host: "127.0.0.1" elasticsearch.url: "http://localhost:9200"
啟動kibana:找到kibana下的bin文件夾,就可以啟動Kibana服務了。
./bin/kibana
Last login: Fri Jul 19 19:14:18 on ttys001 lihuandeMacBook-Pro:~ lihuan$ /Users/lihuan/Documents/opt/elasticsearch/kibana-6.7.0-darwin-x86_64/bin/kibana ; exit; log [11:15:46.092] [info][status][plugin:kibana@6.7.0] Status changed from uninitialized to green - Ready log [11:15:46.117] [info][status][plugin:elasticsearch@6.7.0] Status changed from uninitialized to yellow - Waiting for Elasticsearch log [11:15:46.118] [info][status][plugin:xpack_main@6.7.0] Status changed from uninitialized to yellow - Waiting for Elasticsearch log [11:15:46.122] [info][status][plugin:graph@6.7.0] Status changed from uninitialized to yellow - Waiting for Elasticsearch log [11:15:46.128] [info][status][plugin:monitoring@6.7.0] Status changed from uninitialized to green - Ready log [11:15:46.130] [info][status][plugin:spaces@6.7.0] Status changed from uninitialized to yellow - Waiting for Elasticsearch log [11:15:46.135] [warning][security] Generating a random key for xpack.security.encryptionKey. To prevent sessions from being invalidated on restart, please set xpack.security.encryptionKey in kibana.yml log [11:15:46.138] [warning][security] Session cookies will be transmitted over insecure connections. This is not recommended. log [11:15:46.142] [info][status][plugin:security@6.7.0] Status changed from uninitialized to yellow - Waiting for Elasticsearch log [11:15:46.153] [info][status][plugin:searchprofiler@6.7.0] Status changed from uninitialized to yellow - Waiting for Elasticsearch log [11:15:46.154] [info][status][plugin:ml@6.7.0] Status changed from uninitialized to yellow - Waiting for Elasticsearch log [11:15:46.179] [info][status][plugin:tilemap@6.7.0] Status changed from uninitialized to yellow - Waiting for Elasticsearch log [11:15:46.180] [info][status][plugin:watcher@6.7.0] Status changed from uninitialized to yellow - Waiting for Elasticsearch log [11:15:46.189] [info][status][plugin:grokdebugger@6.7.0] Status changed from uninitialized to yellow - Waiting for Elasticsearch log [11:15:46.192] [info][status][plugin:dashboard_mode@6.7.0] Status changed from uninitialized to green - Ready log [11:15:46.193] [info][status][plugin:logstash@6.7.0] Status changed from uninitialized to yellow - Waiting for Elasticsearch log [11:15:46.196] [info][status][plugin:beats_management@6.7.0] Status changed from uninitialized to yellow - Waiting for Elasticsearch log [11:15:46.214] [info][status][plugin:apm@6.7.0] Status changed from uninitialized to green - Ready log [11:15:46.216] [info][status][plugin:tile_map@6.7.0] Status changed from uninitialized to green - Ready log [11:15:46.217] [info][status][plugin:task_manager@6.7.0] Status changed from uninitialized to green - Ready log [11:15:46.219] [info][status][plugin:maps@6.7.0] Status changed from uninitialized to yellow - Waiting for Elasticsearch log [11:15:46.221] [info][status][plugin:interpreter@6.7.0] Status changed from uninitialized to green - Ready log [11:15:46.226] [info][status][plugin:canvas@6.7.0] Status changed from uninitialized to green - Ready log [11:15:46.228] [info][status][plugin:license_management@6.7.0] Status changed from uninitialized to green - Ready log [11:15:46.229] [info][status][plugin:cloud@6.7.0] Status changed from uninitialized to green - Ready log [11:15:46.229] [info][status][plugin:index_management@6.7.0] Status changed from uninitialized to yellow - Waiting for Elasticsearch log [11:15:46.238] [info][status][plugin:console@6.7.0] Status changed from uninitialized to green - Ready log [11:15:46.239] [info][status][plugin:console_extensions@6.7.0] Status changed from uninitialized to green - Ready log [11:15:46.241] [info][status][plugin:notifications@6.7.0] Status changed from uninitialized to green - Ready log [11:15:46.242] [info][status][plugin:index_lifecycle_management@6.7.0] Status changed from uninitialized to yellow - Waiting for Elasticsearch log [11:15:46.269] [info][status][plugin:infra@6.7.0] Status changed from uninitialized to green - Ready log [11:15:46.270] [info][status][plugin:rollup@6.7.0] Status changed from uninitialized to yellow - Waiting for Elasticsearch log [11:15:46.275] [info][status][plugin:remote_clusters@6.7.0] Status changed from uninitialized to yellow - Waiting for Elasticsearch log [11:15:46.278] [info][status][plugin:cross_cluster_replication@6.7.0] Status changed from uninitialized to yellow - Waiting for Elasticsearch log [11:15:46.285] [info][status][plugin:translations@6.7.0] Status changed from uninitialized to green - Ready log [11:15:46.292] [info][status][plugin:upgrade_assistant@6.7.0] Status changed from uninitialized to green - Ready log [11:15:46.299] [info][status][plugin:uptime@6.7.0] Status changed from uninitialized to green - Ready log [11:15:46.300] [info][status][plugin:oss_telemetry@6.7.0] Status changed from uninitialized to green - Ready log [11:15:46.306] [info][status][plugin:metrics@6.7.0] Status changed from uninitialized to green - Ready log [11:15:46.388] [info][status][plugin:timelion@6.7.0] Status changed from uninitialized to green - Ready log [11:15:46.646] [info][status][plugin:elasticsearch@6.7.0] Status changed from yellow to green - Ready log [11:15:46.678] [info][license][xpack] Imported license information from Elasticsearch for the [data] cluster: mode: basic | status: active log [11:15:46.681] [info][status][plugin:xpack_main@6.7.0] Status changed from yellow to green - Ready log [11:15:46.682] [info][status][plugin:graph@6.7.0] Status changed from yellow to green - Ready log [11:15:46.683] [info][status][plugin:searchprofiler@6.7.0] Status changed from yellow to green - Ready log [11:15:46.683] [info][status][plugin:ml@6.7.0] Status changed from yellow to green - Ready log [11:15:46.683] [info][status][plugin:tilemap@6.7.0] Status changed from yellow to green - Ready log [11:15:46.683] [info][status][plugin:watcher@6.7.0] Status changed from yellow to green - Ready log [11:15:46.684] [info][status][plugin:grokdebugger@6.7.0] Status changed from yellow to green - Ready log [11:15:46.684] [info][status][plugin:logstash@6.7.0] Status changed from yellow to green - Ready log [11:15:46.684] [info][status][plugin:beats_management@6.7.0] Status changed from yellow to green - Ready log [11:15:46.685] [info][status][plugin:index_management@6.7.0] Status changed from yellow to green - Ready log [11:15:46.685] [info][status][plugin:index_lifecycle_management@6.7.0] Status changed from yellow to green - Ready log [11:15:46.685] [info][status][plugin:rollup@6.7.0] Status changed from yellow to green - Ready log [11:15:46.686] [info][status][plugin:remote_clusters@6.7.0] Status changed from yellow to green - Ready log [11:15:46.686] [info][status][plugin:cross_cluster_replication@6.7.0] Status changed from yellow to green - Ready log [11:15:46.686] [info][kibana-monitoring][monitoring-ui] Starting monitoring stats collection log [11:15:46.695] [info][status][plugin:security@6.7.0] Status changed from yellow to green - Ready log [11:15:46.695] [info][status][plugin:maps@6.7.0] Status changed from yellow to green - Ready log [11:15:46.724] [info][license][xpack] Imported license information from Elasticsearch for the [monitoring] cluster: mode: basic | status: active log [11:15:47.117] [warning][reporting] Generating a random key for xpack.reporting.encryptionKey. To prevent pending reports from failing on restart, please set xpack.reporting.encryptionKey in kibana.yml log [11:15:47.134] [info][status][plugin:reporting@6.7.0] Status changed from uninitialized to green - Ready log [11:15:47.274] [info][listening] Server running at http://localhost:5601 log [11:15:47.283] [info][status][plugin:spaces@6.7.0] Status changed from yellow to green - Ready
通過提示,無任何錯誤表示啟動完成。此時通過訪問http://localhost:5601
地址:https://www.elastic.co/cn/downloads/past-releases/kibana-6-7-2
修改配置文件(注意ip不能為localhost)
server.port: 5601 server.host: "0.0.0.0" elasticsearch.hosts: ["http://10.1.34.104:9200"] elasticsearch.username: "demo_user" elasticsearch.password: "demo_user" elasticsearch.requestTimeout: 30000
啟動Kibana
[dev@lihuan1-dev.bj1.haodf.net bin]$ sudo sh kibana 備注:后臺啟動 [dev@search3.es.test.bj1 bin]$ nohup sh kibana & [1] 6110
log [07:52:14.157] [info][status][plugin:kibana@6.7.2] Status changed from uninitialized to green - Ready log [07:52:14.215] [info][status][plugin:elasticsearch@6.7.2] Status changed from uninitialized to yellow - Waiting for Elasticsearch log [07:52:14.218] [info][status][plugin:xpack_main@6.7.2] Status changed from uninitialized to yellow - Waiting for Elasticsearch log [07:52:14.228] [info][status][plugin:graph@6.7.2] Status changed from uninitialized to yellow - Waiting for Elasticsearch log [07:52:14.243] [info][status][plugin:monitoring@6.7.2] Status changed from uninitialized to green - Ready log [07:52:14.249] [info][status][plugin:spaces@6.7.2] Status changed from uninitialized to yellow - Waiting for Elasticsearch log [07:52:14.260] [warning][security] Generating a random key for xpack.security.encryptionKey. To prevent sessions from being invalidated on restart, please set xpack.security.encryptionKey in kibana.yml log [07:52:14.267] [warning][security] Session cookies will be transmitted over insecure connections. This is not recommended. log [07:52:14.283] [info][status][plugin:security@6.7.2] Status changed from uninitialized to yellow - Waiting for Elasticsearch log [07:52:14.307] [info][status][plugin:searchprofiler@6.7.2] Status changed from uninitialized to yellow - Waiting for Elasticsearch log [07:52:14.310] [info][status][plugin:ml@6.7.2] Status changed from uninitialized to yellow - Waiting for Elasticsearch log [07:52:14.385] [info][status][plugin:tilemap@6.7.2] Status changed from uninitialized to yellow - Waiting for Elasticsearch log [07:52:14.387] [info][status][plugin:watcher@6.7.2] Status changed from uninitialized to yellow - Waiting for Elasticsearch log [07:52:14.406] [info][status][plugin:grokdebugger@6.7.2] Status changed from uninitialized to yellow - Waiting for Elasticsearch log [07:52:14.414] [info][status][plugin:dashboard_mode@6.7.2] Status changed from uninitialized to green - Ready log [07:52:14.416] [info][status][plugin:logstash@6.7.2] Status changed from uninitialized to yellow - Waiting for Elasticsearch log [07:52:14.426] [info][status][plugin:beats_management@6.7.2] Status changed from uninitialized to yellow - Waiting for Elasticsearch log [07:59:57.335] [info][status][plugin:translations@6.7.2] Status changed from uninitialized to green - Ready log [07:59:57.350] [info][status][plugin:upgrade_assistant@6.7.2] Status changed from uninitialized to green - Ready log [07:59:57.378] [info][status][plugin:uptime@6.7.2] Status changed from uninitialized to green - Ready log [07:59:57.382] [info][status][plugin:oss_telemetry@6.7.2] Status changed from uninitialized to green - Ready log [07:59:57.397] [info][status][plugin:metrics@6.7.2] Status changed from uninitialized to green - Ready log [07:59:57.650] [info][status][plugin:timelion@6.7.2] Status changed from uninitialized to green - Ready log [07:59:58.424] [info][status][plugin:elasticsearch@6.7.2] Status changed from yellow to green - Ready log [07:59:58.556] [info][license][xpack] Imported license information from Elasticsearch for the [data] cluster: mode: basic | status: active log [07:59:58.564] [info][status][plugin:xpack_main@6.7.2] Status changed from yellow to green - Ready log [07:59:58.564] [info][status][plugin:graph@6.7.2] Status changed from yellow to green - Ready log [07:59:58.566] [info][status][plugin:searchprofiler@6.7.2] Status changed from yellow to green - Ready log [07:59:58.566] [info][status][plugin:ml@6.7.2] Status changed from yellow to green - Ready log [07:59:58.567] [info][status][plugin:tilemap@6.7.2] Status changed from yellow to green - Ready log [07:59:58.567] [info][status][plugin:watcher@6.7.2] Status changed from yellow to green - Ready log [07:59:58.568] [info][status][plugin:grokdebugger@6.7.2] Status changed from yellow to green - Ready log [07:59:58.568] [info][status][plugin:logstash@6.7.2] Status changed from yellow to green - Ready log [07:59:58.568] [info][status][plugin:beats_management@6.7.2] Status changed from yellow to green - Ready log [07:59:58.569] [info][status][plugin:index_management@6.7.2] Status changed from yellow to green - Ready log [07:59:58.569] [info][status][plugin:index_lifecycle_management@6.7.2] Status changed from yellow to green - Ready log [07:59:58.570] [info][status][plugin:rollup@6.7.2] Status changed from yellow to green - Ready log [07:59:58.570] [info][status][plugin:remote_clusters@6.7.2] Status changed from yellow to green - Ready log [07:59:58.571] [info][status][plugin:cross_cluster_replication@6.7.2] Status changed from yellow to green - Ready log [07:59:58.571] [info][kibana-monitoring][monitoring-ui] Starting monitoring stats collection log [07:59:58.599] [info][status][plugin:security@6.7.2] Status changed from yellow to green - Ready log [07:59:58.599] [info][status][plugin:maps@6.7.2] Status changed from yellow to green - Ready log [07:59:58.700] [info][license][xpack] Imported license information from Elasticsearch for the [monitoring] cluster: mode: basic | status: active log [07:59:59.132] [warning][reporting] Generating a random key for xpack.reporting.encryptionKey. To prevent pending reports from failing on restart, please set xpack.reporting.encryptionKey in kibana.yml log [07:59:59.144] [info][status][plugin:reporting@6.7.2] Status changed from uninitialized to green - Ready log [07:59:59.310] [info][listening] Server running at http://10.1.20.134:5601 log [07:59:59.337] [info][status][plugin:spaces@6.7.2] Status changed from yellow to green - Ready
關于“如何安裝Kibana”這篇文章就分享到這里了,希望以上內容可以對大家有一定的幫助,使各位可以學到更多知識,如果覺得文章不錯,請把它分享出去讓更多的人看到。
免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。