环境
kibana 是与 ElasticSearch 绑定的,所以要想使用kibana,必须先装有 ElasticSearch
- ElasticSearch
下载地址
官网:https://www.elastic.co/cn/downloads/kibana
国内镜像:https://www.newbe.pro/Mirrors/Mirrors-Kibana/
官网的下载速度是跟乌龟爬的一样,最好还是使用国内的一个镜像,注意下载的时候要与ElasticSearch的版本匹配
安装
官网是有详细的安装教程的,按照这个教程去走基本就可以启动成功
- 解压安装包
[root@iZbp17kchfu5kwypzjeyqiZ kibana]# tar xvf kibana-7.3.2-linux-x86_64.tar.gz
kibana-7.3.2-linux-x86_64/x-pack/legacy/plugins/apm/public/components/app/TransactionDetails/Transaction/WaterfallContainer/Waterfall/waterfall_helpers/mock_responses/transaction.json
kibana-7.3.2-linux-x86_64/node_modules/@elastic/nodegit/build/Release/.deps/Release/obj.target/libgit2/vendor/libgit2/src/hash/sha1dc/sha1.o.d
kibana-7.3.2-linux-x86_64/node_modules/@elastic/nodegit/build/Release/.deps/Release/obj.target/libgit2/vendor/libgit2/src/hash/sha1dc/ubc_check.o.d
- 修改配置
要想kibana 可以外网访问,还需要修改 server.host 的
[elastic@iZbp17kchfu5kwypzjeyqiZ kibana-7.3.2-linux-x86_64]$ vim config/kibana.yml
# 修改服务地址
server.host: "0.0.0.0"
- 启动
[elastic@iZbp17kchfu5kwypzjeyqiZ kibana-7.3.2-linux-x86_64]$ bin/kibana
log [14:53:25.092] [info][plugins-system] Setting up [1] plugins: [translations]
log [14:53:25.099] [info][plugins][translations] Setting up plugin
log [14:53:25.100] [info][plugins-system] Starting [1] plugins: [translations]
log [14:54:02.102] [info][listening] Server running at http://localhost:5601
log [14:54:02.119] [info][server][Kibana][http] http server running
log [14:54:02.356] [info][status][plugin:spaces@7.3.2] Status changed from yellow to green - Ready
看到这行日志证明已经启动成功了
4. 访问 5601 端口
看到这样的画面证明kibana已经安装成功
Dashboard 看板效果效果展示
在kibana 的首页,已经给你提供了三个样例数据,分别是 电商网站的订单,航空公司的飞行记录,web网站的日志,点击addData ,kibana便会自己去官网将样例数据下载下来
可以看到,kibana 的样例效果展示是非常优秀的,他将数据分析并且以看板的方式展现出来,更加形象生动并且直观
Dev Tools 开发工具
dev tools 的作用,是帮助开发人员更加方便的执行一些 ElasticSearch 命令,相当于是一个可视化的客户端,在这里可以执行一些命令并且还有 只能提示,很方便的
点击左上角的 help,还可以看到一些快捷键的使用方式
管理
管理导航栏,可以让我们去管理 ElasticSearch 的一些索引,在这个页面上,我们可以看到当前的ElasticSearch中已经有了四条索引
kibana plugin
官网插件:https://www.elastic.co/guide/en/kibana/current/known-plugins.html
kibana 的插件安装与 ElasticSearch 几乎相同,kibana 也是通过 plugin 的方式去扩展一些功能,比如增强看板的展示已经引入一些应用
[elastic@iZbp17kchfu5kwypzjeyqiZ kibana-7.3.2-linux-x86_64]$ bin/kibana-plugin list
[elastic@iZbp17kchfu5kwypzjeyqiZ kibana-7.3.2-linux-x86_64]$ bin/kibana-plugin install LogTrail
Attempting to transfer from LogTrail
kibana 安装穿件的方式有三种,可以根据你的需求自己选择
# 直接指定插件名
$ bin/kibana-plugin install x-pack
# 指定插件的http地址下载
$ bin/kibana-plugin install https://artifacts.elastic.co/downloads/packs/x-pack/x-pack-7.8.1.zip
# 本地安装
$ bin/kibana-plugin install file:///local/path/to/custom_plugin.zip
汉化
从6.7版本开始,Kibana支持中文,无需再像之前那样下载汉化包,甚至自己进行翻译。设置方式很简单,只需要修改配置中的语言,再次启动就是中文了。
[elastic@iZbp17kchfu5kwypzjeyqiZ kibana-7.3.2-linux-x86_64]$ vim config/kibana.yml
# 将#去掉并且修改值为
i18n.locale: "zh-CN"