Monday, June 6, 2016

Install Kibana on Ubuntu 16.04


Steps to Install Kibana on Ubuntu 16.04


Install Kibana

Add Kibana to source list and upgrade package database
echo "deb http://packages.elastic.co/kibana/4.5/debian stable main" | sudo tee -a /etc/apt/sources.list
sudo apt-get update

Install kibana with this command ( this will automatically install the latest kibana packages)
sudo apt-get -y install kibana

Kibana will be installed on /opt/kibana

Configure Kibana

Next we need to configure kibana, start by edit kibana.yml file
sudo nano /opt/kibana/config/kibana.yml

Configure server host

Find the line that set server.host and change it to 0.0.0.0, this will allow kibana to accept connection from any IP Address

server.host: "localhost"
to
server.host: "0.0.0.0"

Configure Elastic URL

Search for the line that set elasticsearch.url, the default value is http://localhost:9200. You only need to change this if your elasticsearch server is on a different server

elasticsearch.url: "http://localhost:9200"
lets say that your elastic ip address is on 192.168.0.1 on port 9201, then change this to
elasticsearch.url: "http://192.168.0.1:9201"

Run Kibana

you can use the following commands to start, stop and monitor kibana

sudo service kibana start
sudo service kibana stop
sudo service kibana status

By default kibana is accessible on port 5601, this is how it looks if all the configuration is succeed