Below is a very quick and easy install to get Kibana 5.4.x up and running on CentOS 7. There are other sites that will explain every step in greater detail and this is not intended for that purpose, instead it is a quick install to get Kibana installed. This is based on the install scripts/instructions used for production Elasticsearch environments.

The install documented here is based on a fresh install of CentOS 7 x86_64 Minimal

When you build your CentOS server do not create a swap file, this is the easiest and best way to keep the JVM from swapping and it is unnecessary on a dedicated Elasticsearch server.

First, make sure your CentOS install is up to date

sudo yum update
sudo yum upgrade -y

Install Java

sudo yum install java -y

Download and install Kibana and then install the x-pack plugin

sudo wget
sudo rpm -ivh kibana-5.4.3-x86_64.rpm.rpm
sudo /usr/share/kibana/bin/kibana-plugin install x-pack

Add the firewall rules to allow direct access to Kibana on the default port.

firewall-cmd --permanent --add-port=5601/tcp
firewall-cmd --reload

Some random commands that are required for Kibana to start up properly. The RPM and x-pack install does not do this automatically and if these commands are skipped Kibana will fail to start.

sudo mkdir /var/log/kibana
sudo chown kibana.kibana /var/log/kibana
sudo chown kibana.kibana /usr/share/kibana/optimize/bundles/
sudo chown kibana.kibana /usr/share/kibana/optimize/bundles/*

Configure your Kibana instance. This config assumes that you are connecting to a client node of Elasticsearch that is installed locally on the Kibana server (localhost:9200). The IP of the server that Kibana is installed on is in this example. This is the complete config that you need for a functioning Kibana install.

sudo vi /etc/kibana/kibana.yml
elasticsearch.preserveHost: true ""
server.port: 5601
logging.dest: /var/log/kibana/kibana.log

Enable the Kibana service to start on boot and then start it manually.

sudo systemctl enable kibana
sudo systemctl start kibana

Now go hit in a browser and the default Kibana page should pull out.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Close Menu