Sunday, September 4, 2016

Install Kibana on Centos 6.8

In this notes, you can see how to install kibana on Centos 6.8

Install Kibana

First we add a new repositository for kibana
echo '[kibana-4.4]
name=Kibana repository for 4.4.x packages
baseurl=http://packages.elastic.co/kibana/4.4/centos
gpgcheck=1
gpgkey=http://packages.elastic.co/GPG-KEY-elasticsearch
enabled=1
' | sudo tee /etc/yum.repos.d/kibana.repo

and then we install kibana
sudo yum -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

No comments :

Post a Comment