Kibana 让您能够可视化 Elasticsearch 中的数据并操作 Elastic Stack。
一、环境
# dmidecode|grep "System Information" -A9|egrep "Manufacturer|Product"
Manufacturer: Dell Inc.
Product Name: PowerEdge R630
# uname -a
Linux linux-node2 3.10.0-693.21.1.el7.x86_64 #1 SMP Wed Mar 7 19:03:37 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
# cat /etc/redhat-release
CentOS Linux release 7.4.1708 (Core)
关闭firewalld,selinux
二、安装kibana
# yum install -y kibana
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirrors.aliyun.com
* extras: mirrors.aliyun.com
* updates: mirrors.aliyun.com
Resolving Dependencies
--> Running transaction check
---> Package kibana.x86_64 0:6.2.4-1 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
====================================================================================================================================================================
Package Arch Version Repository Size
====================================================================================================================================================================
Installing:
kibana x86_64 6.2.4-1 elasticsearch-6.x 83 M
Transaction Summary
====================================================================================================================================================================
Install 1 Package
Total download size: 83 M
Installed size: 292 M
Downloading packages:
kibana-6.2.4-x86_64.rpm | 83 MB 00:06:49
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing : kibana-6.2.4-1.x86_64 1/1
Verifying : kibana-6.2.4-1.x86_64 1/1
Installed:
kibana.x86_64 0:6.2.4-1
Complete!
# /bin/systemctl daemon-reload
# /bin/systemctl enable kibana.service
Created symlink from /etc/systemd/system/multi-user.target.wants/kibana.service to /etc/systemd/system/kibana.service.
]# systemctl start kibana.service
# systemctl status kibana.service
● kibana.service - Kibana
Loaded: loaded (/etc/systemd/system/kibana.service; enabled; vendor preset: disabled)
Active: active (running) since Fri 2018-05-25 20:26:43 CST; 7s ago
Main PID: 97279 (node)
Tasks: 6
Memory: 86.5M
CGroup: /system.slice/kibana.service
└─97279 /usr/share/kibana/bin/../node/bin/node --no-warnings /usr/share/kibana/bin/../src/cli -c /etc/kibana/kibana.yml
May 25 20:26:43 linux-node1 systemd[1]: Started Kibana.
May 25 20:26:43 linux-node1 systemd[1]: Starting Kibana...
配置# /etc/kibana/kibana.yml
server.host: "X.X.X.X"
server.name: "X.X.X.X"
elasticsearch.url: "http://X.X.X.X:9200"
elasticsearch.username: "XXX"
elasticsearch.password: "XXX"
重启kibana:
# systemctl restart kibana.service
网页访问:http://X.X.X.X:5601/ ##kibana最好用原生态浏览器,如果在firefox和chrome中安装去广告插件和油猴等将会导致未知的错误。