Kibana 用户手册
https://www.elastic.co/guide/cn/kibana/current/index.html
一、Kibana安装
1.环境准备
Kibana是ElasticSearch的可视化平台,依赖ElasticSearch,需要优先安装ElasticSearch。
示例:ElasticSearch 5.5.2 集群
2.Kibana下载
Kibana官方下载地址:https://www.elastic.co/cn/downloads/kibana
根据ElasticSearch版本及安装环境下载相应的Kibana安装包。
示例:kibana-5.5.2-linux-x86_64.tar.gz
3.Kibana 安装及配置
将安装包上次到服务器,然后解压安装包,例如解压到:/run/
tar –zxvf kibana-5.5.2-linux-x86_64.tar.gz–C /run/
然后到kibana安装目录的config下,编辑kibana.yml配置文件,添加如下配置:
# 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: "10.33.43.9"
# 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://10.33.43.9:9200"
# When this setting's value is true Kibana uses the hostname specified in the server.host
# setting. When the value of this setting is false, Kibana uses the hostname of the host
# that connects to this Kibana instance.
#elasticsearch.preserveHost: true
# Kibana uses an index in Elasticsearch to store saved searches, visualizations and
# dashboards. Kibana creates a new index if the index doesn't already exist.
#kibana.index: ".kibana"
# The default application to load.
#kibana.defaultAppId: "discover"
# If your Elasticsearch is protected with basic authentication, these settings provide
# the username and password that the Kibana server uses to perform maintenance on the Kibana
# index at startup. Your Kibana users still need to authenticate with Elasticsearch, which
# is proxied through the Kibana server.
#elasticsearch.username: "user"
#elasticsearch.password: "pass"
# Enables SSL and paths to the PEM-format SSL certificate and SSL key files, respectively.
# These settings enable SSL for outgoing requests from the Kibana server to the browser.
server.ssl.enabled: false
#server.ssl.certificate: /path/to/your/server.crt
#server.ssl.key: /path/to/your/server.key
该配置文件还可以添加其他配置项,例如:server.port: 5601 用来配置kibana服务端口,具体其他配置可以参考kibana.yml文件内部的注释说明。
4.Kibana 启动
切换到kibana安装目录的bin目录下,执行kibana文件
cd /run/kibana-5.5.2-linux-x86_64/bin
./kibana &
主要使用&命令启动后,退出当前窗口时需要使用exit退出
成功启动后,可以访问:http:// 192.168.252.129:5061 5601来访问kibana,ip为kibana安装节点ip,端口默认为50615601,可以在config/kibana.yml中配置.