如何安装Kibana
这篇文章将为大家详细讲解有关如何安装Kibana,小编觉得挺实用的,因此分享给大家做个参考,希望大家阅读完这篇文章后可以有所收获。
网站建设哪家好,找创新互联!专注于网页设计、网站建设、微信开发、微信小程序、集团企业网站建设等服务项目。为回馈新老客户创新互联还提供了烟台免费建站欢迎大家使用!
安装Kibana
官网地址:https://www.elastic.co/cn/
Mac安装
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
Linux安装
地址: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”这篇文章就分享到这里了,希望以上内容可以对大家有一定的帮助,使各位可以学到更多知识,如果觉得文章不错,请把它分享出去让更多的人看到。
分享题目:如何安装Kibana
标题网址:http://scgulin.cn/article/ieiceo.html