Install Kibana on Ubuntu – In easy and simple steps
In this article, we will discuss install Kibana on ubuntu in easy steps. This is the 3rd article in Kibana series in which we will discuss Kibana installation process in ubuntu in simple and easy steps.
Steps for Installation
The best thing about Kibana installation on Ubuntu Operating system is, you can install by downloading deb package or you can simply install from APT repository, but I will suggest you go with deb package to make sure you have to install everything by yourself and get better control and knowledge.
Using APT Repository
- Download and Install Public Elastic PGP key
For Download, you have to use the wget command.
wget -qO - https://artifacts.elastic.co/GPG-KEY-elasticsearch | sudo apt-key add -
- Using APT repository, install apt-transport-https package
For installing apt-transport-https, use below command.
sudo apt-get install apt-transport-https
- Save repository definition to source.list.d
For adding into the source file, use below command.
echo "deb https://artifacts.elastic.co/packages/6.x/apt stable main" | sudo tee -a /etc/apt/sources.list.d/elastic-6.x.list
As you are using 6.x, it will take the latest version, if you want to add any specific version, then need to provide version number correctly.
- Install apt-install command to install Kibana in Ubuntu.
sudo apt-get update && sudo apt-get install kibana
Using Debian Package Manually
- Download Kibana 6.3 version using wget
Use below command to download wget package for Kibana 6.3
- Compare the SHA value
For Comparing, you can use shasum command as below.
shasum -a 512 kibana-6.3.0-amd64.deb
- Install Kibana dpkg
Now you are ready to install Kibana dpkg file, Use below command.
sudo dpkg -i kibana-6.3.0-amd64.deb
Now congratulations, you installed Kibana successfully on your Ubuntu system. Now Let’s start Kibana as service because Kibana is not installing as service so you have to set as auto service to make sure always Kibana has to be run in the background.
Running Kibana with systemd
Running Kibana with systemd is very easy and you can start and stop Kibana service with a single command.
- First, you need to reload the daemon which helps to add kibana service
sudo /bin/systemctl daemon-reload
- Once this will be done, then enable Kibana services
sudo /bin/systemctl enable kibana.service
- Once Kibana service will get enable, then you can start kibana service by
sudo systemctl start kibana.service
- And If you want to stop the service then you can use below command
sudo systemctl stop kibana service
Information about Kibana directory layout
Kibana zip self-contained few folders out of which we will discuss few important ones.
- home: This is Kibana home directory.
- bin: All binary scripts including kibana.bat which need to run your Kibana instance also reside inside bin folder as well as Kibana-plugin which used to install a plugin for Kibana.
- config: All Kibana related configuration file which used for tuning and managing Kibana resides inside config folder such as Kibana.yaml
- data: This folder used for data file which written to disk by Kibana instance and it’s plugins.
- plugins: Once you will install any plugin, it will create a subfolder inside this plugin folder.
In this article, you learn about install Kibana on Ubuntu in easy steps. In the next article, we will discuss more about Kibana process. Till that keep learning and don’t forget to put comments below.