您现在的位置是:首页 > 文章详情

Kibana:Elasticsearch的窗口工具学习分享(Mac亲测有效)

日期:2018-07-17点击:472

Kibana

Kibana这是您走进 Elastic Stack 的窗口。
在使用Elasticsearch,我们在安装启动后,想要可视化的去操作它。那么这个时候就需要Kibana了。


一、什么是Kibana

当你在安装完Elasticsearch,你可能就会有个疑问,接下来我怎么去可视化的操作Elasticsearch中的数据呢?这个时候Kibana就派上用场了。
Kibana 让您能够可视化 Elasticsearch 中的数据并操作 Elastic Stack。
Kibana是一个开源分析和可视化平台,旨在与Elasticsearch协同工作。您使用Kibana搜索,查看和与存储在Elasticsearch索引中的数据进行交互。您可以轻松地执行高级数据分析,并在各种图表,表格和地图中可视化您的数据。

Kibana使您可以轻松理解大量数据。其简单的基于浏览器的界面使您能够快速创建和共享动态仪表板,实时显示Elasticsearch查询的更改。

设置Kibana非常容易。您可以安装Kibana并在几分钟内开始探索您的Elasticsearch索引 - 无需代码,无需额外的基础架构。

关于Kibana,官网有很好很详细的说明。
请认准中文官网
总之功能非常强大,在这里就不放图了。
后期分享一些牛逼的操作。

二、安装

安装的时候,官方也有非常详细的操作,Kibana安装请自行前往。
Mac请跟我来
你只需要在命令行终端输入:

brew install kibana

即可轻松安装。
安装后:

$ brew install kibana Updating Homebrew... ==> Auto-updated Homebrew! Updated 1 tap (homebrew/core). ==> Updated Formulae overmind rustup-init sratoolkit znc ==> Downloading https://homebrew.bintray.com/bottles/kibana-6.2.4.high_sierra.bo ######################################################################## 100.0% ==> Pouring kibana-6.2.4.high_sierra.bottle.tar.gz ==> Caveats Config: /usr/local/etc/kibana/ If you wish to preserve your plugins upon upgrade, make a copy of /usr/local/opt/kibana/plugins before upgrading, and copy it into the new keg location after upgrading. To have launchd start kibana now and restart at login: brew services start kibana Or, if you don't want/need a background service you can just run: kibana ==> Summary ? /usr/local/Cellar/kibana/6.2.4: 49,501 files, 293.6MB

三、启动

这个时候你既可以在命令行输入:

kibana

后台启动的话:

$ nohup nice kibana & [1] 7370 appending output to nohup.out 

四、访问Kibana

http://localhost:5601/

访问结果如下图
这里写图片描述

五、查看安装的信息

brew info kibana

可见:

$ brew info kibana kibana: stable 6.2.4 (bottled), HEAD Analytics and search dashboard for Elasticsearch https://www.elastic.co/products/kibana /usr/local/Cellar/kibana/6.2.4 (49,502 files, 293.6MB) * Poured from bottle on 2018-07-18 at 17:09:56 From: https://github.com/Homebrew/homebrew-core/blob/master/Formula/kibana.rb ==> Options --HEAD Install HEAD version ==> Caveats Config: /usr/local/etc/kibana/ If you wish to preserve your plugins upon upgrade, make a copy of /usr/local/opt/kibana/plugins before upgrading, and copy it into the new keg location after upgrading. To have launchd start kibana now and restart at login: brew services start kibana Or, if you don't want/need a background service you can just run: kibana ~ ⌚ 17:22:35 $ 

六、查看Kibana的状态

localhost:5601/status

这里写图片描述

七、将Kibana与Elasticsearch 编辑连接

在开始使用Kibana之前,您需要告诉它您要探索哪些Elasticsearch索引。第一次访问Kibana时,系统会提示您定义与一个或多个索引的名称匹配的索引模式。

默认情况下,Kibana连接到运行的Elasticsearch实例localhost。要连接到其他Elasticsearch实例,请修改kibana.yml配置文件中的Elasticsearch URL 并重新启动Kibana。

比如说你在你的ES里面有两个索引并且对应的有值。
这里写图片描述

然后你在你的Kibana中,又可以看到这些值,那么就证明连接对了。
这里写图片描述

结语,好了,后续我们再学习一些高深的东西!

原文链接:https://yq.aliyun.com/articles/614443
关注公众号

低调大师中文资讯倾力打造互联网数据资讯、行业资源、电子商务、移动互联网、网络营销平台。

持续更新报道IT业界、互联网、市场资讯、驱动更新,是最及时权威的产业资讯及硬件资讯报道平台。

转载内容版权归作者及来源网站所有,本站原创内容转载请注明来源。

文章评论

共有0条评论来说两句吧...

文章二维码

扫描即可查看该文章

点击排行

推荐阅读

最新文章