Kibana Quick Start Tutorial

We welcome the attention of the public number: Patricia learn Java , Java push to focus on areas of high-quality dry article! !

Website: https://www.exception.site/kibana/kibana-tutorial

Kibana Getting Started Tutorial

What is Kibana

Kibana ELK technology stack K is the full name, we can very conveniently, the index data Elasticsearch in visual analysis by kibana.

The most important is that you are free to choose how to display the data in Elasticsearch.

The so-called:

A picture is worth millions of lines log.

Kibana What are the features?

basic skills

Histogram, line graph, pie chart, FIG sun, like: Kibana Since it is a visual analysis, visualization of various natural and ultimately components, such as used for.

Location analysis

, Visual analysis may be performed by the position data Elastic Maps.

sequentially

, By sequence analysis may be performed on the time series assembly of Elasticsearch time data. At the same time, you can also take advantage of powerful features, easy to learn expressions to describe the query, conversion and visualization.

Machine Learning ( Machine Learning )

By Kibana built-in machine learning, we can detect hidden in Elasticsearch anomalies in the data as well as to explore the properties of those points have a significant impact on them.

Icons and grids

With the correlation function Elasticsearch analyzed in conjunction with Graph association, it can help us to easily analyze data relationships in the ES.

AnSo Kibana

Download & unzip

Kibana said so many features, so how to install blanket?

Kibana visit the official website download page https://www.elastic.co/cn/downloads/kibana

小哈这里访问的时候,最新版本为 7.3.2,但是为了与上篇文章中《手摸手带您学会 Elasticsearch 单机、集群、插件安装(图文教程)》 的 Elasticsearch 的版本保持一致,需要下载 7.1.0 版本。

Elasticsearch 每个版本的 API 可能会有变化,为了保证 Kibana 能够正常访问 ES, 请严格保证两者之间的版本号一致。

选择对应系统的包下载到本地,解压:

tar -zxvf 包名

解压成功后,目录如下:

启动 Kibana

进入到 Kibana 解压后的根目录,执行启动命令:

bin/kibana

控制台输出如下:

当控制台中输出包含 Server running at http://localhost:5601, 则代表 Kibana 启动成功了,接下来,我们在浏览器中访问 http://localhost:5601 地址,即可打开 Kibana.

注意:为了保证 Kibana 正常使用,您需要确保 Elasticsearch 正常启动。

Kibana 仪表盘(Dashboards)

打开 Kibana 首页,如下所示:

页面上提示我们,可以添加一些测试数据到 Kibana 中(实际上是添加测试数据到 ES 中):

点击 Load a data set and a Kibana dashboard 按钮,跳转页面如下:

如上图所示,有3种类型的测试数据可以添加,分别是:

  • ①:电商数据;
  • ②:航班数据;
  • ③:简单的 Web 日志数据;

点击 Add Data 按钮, Kibana 会将对应类型的测试数据导入到 ES 种,导入成功后,我们分别看下不同类型的数据的 Dashboards(仪表盘) 都是啥样的。

先看下电商的 Dashboards(仪表盘):

图表中展示了一些电商指标数据,包含商品的平均售价、平均销售量、每天商品销量、总收入等。

再看下航班的 Dashboards(仪表盘):

上图展示了航班的一些指标数据,包含总航班次数、平均票价、航空公司分布等。

关于 Kibana 的页面的功能,这里就简单介绍一些仪表盘,后续文章中,笔者会对 Kibana 的其他功能做一个详细深入的了解。

Kibana DevTools(开发者工具)

接下来介绍一下 Kibana 中一个非常有用的工具 DevTools。

这玩意是做啥的?

通过 DevTools, 我们可以非常方便的操作 ES 的 API, 如查询集群节点信息、查询索引数据信息等,如下所示:

除了操作 ES 的 API 外,Kibana 的 DevTools 还提供了快捷键的功能,比如按 ctrl/cmd + / 能够快速查阅 API 的官方文档等。

更多快捷键,点击页面上 Help, 即可查看。

kibana 安装插件

类似于 Elasticsearch,Kibana 同样提供了插件功能,通过安装一些外部插件,可以增强 Kibana 原有功能,如:增强图表展示等。

# 安装 kibana 插件
bin/kibana-plugin install plugin_location
# 查看已安装的 kibana 插件
bin/kibana-plugin list
# 异常已经安装的 kibana 插件
bin/kibana remove plugin_name

下面链接是目前已知的插件列表:

https://www.elastic.co/guide/cn/kibana/current/known-plugins.html

结语

本文中,小哈带着大家了解了什么是 Kibana、Kibana 的主要功能、仪表盘、开发者工具(DevTools)、以及插件安装。希望看完本文的小伙伴们能有所收获,下期见哦~

Ref

欢迎关注微信公众号: 小哈学Java

More dry articles, please pay attention to the public the author Number: Patricia learn Java (ID: xiaoha_java), focused on sharing Java field dry articles, is not limited to face questions BAT share, Spring Boot, Spring Cloud, high concurrency, JVM, database, Docker container, ELK and other related knowledge, in addition, attention reply "resources" to obtain the full text of the interview the hottest Java architecture & learning resources yo ~

Focus on micro-channel public number [Patricia] learn Java, reply [resources], you can receive a free resource links Oh no routine

Guess you like

Origin www.cnblogs.com/quanxiaoha/p/11716273.html
Recommended