Kibana is an GUI tool for searching and displaying logs provided by Elasticsearch. In this tutorial, I will guide you to install this tool on CentOS!
First, just like when installing Elasticsearch, because by default CentOS does not contain Kibana’s installation package, you need to add Kibana’s repository.
If you have installed Elasticsearch before using the repo with baseUrl https://artifacts.elastic.co/packages/7.x/yum, you do not need to do this step.
If you have not installed Elasticsearch, then you need to add Kibana public signing key to your computer to Package Manager of your OS trust package from the Kibana repository:
1 |
sudo rpm --import https://artifacts.elastic.co/GPG-KEY-elasticsearch |
My results are as follows:
Next, you need to create a new file to add Kibana repository:
1 |
sudo vi /etc/yum.repos.d/kibana.repo |
then add to the file the following content:
1 2 3 4 5 6 7 8 |
[kibana-7.x] name=Kibana repository for 7.x packages baseurl=https://artifacts.elastic.co/packages/7.x/yum gpgcheck=1 gpgkey=https://artifacts.elastic.co/GPG-KEY-elasticsearch enabled=1 autorefresh=1 type=rpm-md |
Now you can run the following command to install Kibana:
1 |
sudo yum install kibana |
Enter “Y” to continue!
Results of installation:
You need to start Kibana after installation is complete, with the command:
1 |
sudo systemctl start kibana |
If you want to start it when your computer boots, run the following command:
1 |
sudo systemctl enable kibana |
By default, Kibana will run at port 5601 and will only be accessible by localhost, so after starting Kibana, you can access it using the following URL: http://localhost:5601.
My results are as follows:
If you already have data to display, you can click the Explore on my own option to configure it, otherwise, click Try our sample data to see how Kibana work!
I will choose Try our sample data.
Choose Add data.
Installed:
You can click on View data and select Dashboard to start! 😀