1、前言
Kibana是一个开源的分析和可视化平台,设计用于和Elasticsearch一起工作。
你用Kibana来搜索,查看,并和存储在Elasticsearch索引中的数据进行交互。
你可以轻松地执行高级数据分析,并且以各种图标、表格和地图的形式可视化数据。
Kibana使得理解大量数据变得很容易。它简单的、基于浏览器的界面使你能够快速创建和共享动态仪表板,实时显示Elasticsearch查询的变化。
2、下载安装
- 下载地址:https://www.elastic.co/cn/downloads/kibana
- 解压 tar -xzvf kibana--.tar.gz
- 修改配置
# Kibana is served by a back end server. This setting specifies the port to use.
server.port: 5601
# Specifies the address to which the Kibana server will bind. IP addresses and host names are both valid values.
# The default is 'localhost', which usually means remote machines will not be able to connect.
# To allow connections from remote users, set this parameter to a non-loopback address.
server.host: "0.0.0.0"
# Enables you to specify a path to mount Kibana at if you are running behind a proxy. This only affects
# the URLs generated by Kibana, your proxy is expected to remove the basePath value before forwarding requests
# to Kibana. This setting cannot end in a slash.
#server.basePath: ""
# The maximum payload size in bytes for incoming server requests.
#server.maxPayloadBytes: 1048576
# The Kibana server's name. This is used for display purposes.
#server.name: "your-hostname"
# The URL of the Elasticsearch instance to use for all your queries.
elasticsearch.url: "http://127.0.0.1:9200"
-
启动
[lvfang@test-l27-14-70 bin]$ ./kibana
这里值得注意的是kibana在使用ps查看进程的时候是使用node而不是kibana。当然你也可以根据端口去查
ps -ef | grep node
3、简单使用
访问 http://127.0.0.1:5601 查看kibana
-
devtools主要是用于http-json的可视化查询使用
-
management主要用于配置,包括索引创建等等
-
discover主要用于便捷查询
4、快速创建elk日志索引步骤
另外kibana的使用可以参考 https://www.cnblogs.com/cjsblog/p/9476813.html