Kibana安裝及使用說明

先說好不能罵我發表於2018-10-13

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中配置.

相關文章