How To

Install Elasticsearch 5.6.1 and Kibana 5.6.1 on CentOS 7

Elasticsearch 5.6.1 recently released, is a search engine that is based on Lucene, providing a distributed full-text search engine with an HTTP web interface. While Kibana 5.6.1 is an open-source data visualization plugin for Elasticsearch. It provides visualization capabilities on top of the content indexed on an Elasticsearch cluster.

install elasticsearch kibana

Elasticsearch 5.6.1 Changelog

  • Fix percolator highlight sub fetch phase to not highlight query twice
  • Fix unmapped_type creation for indices created in 2.x
  • Add boolean similarity to built in similarity types
  • Upgrade to Lucene-6.6.1

Kibana 5.6.1 Changelog

  • Sets update_all_types when setting mapping
  • Allow user to select any field for cardinality in filter ratio aggregation for TSVB
  • Ensure vector layer combo box displays options. The combobox for the vector layers in the Region Map Visualizations now correctly displays the available option

How to Install Elasticsearch 5.6.1 on CentOS 7, RHEL

  • Elasticsearch requires Java 8 or later. See link

Install Java 8 latest update on CentOS

  • Next step is to download and install Elasticsearch Public Signing Key
sudo rpm --import http://packages.elasticsearch.org/GPG-KEY-elasticsearch
  • Next is to create a file called “elasticsearch.repo” in “/etc/yum.repos.d/” directory
sudo vi /etc/yum.repos.d/elasticsearch.repo
  • Afte that, add the following config into the repository created above
[elasticsearch-5.x]
name=Elasticsearch repository for 5.x packages
baseurl=https://artifacts.elastic.co/packages/5.x/yum
gpgcheck=1
gpgkey=https://artifacts.elastic.co/GPG-KEY-elasticsearch
enabled=1
autorefresh=1
type=rpm-md
  • Install Elasticsearch at this stage
sudo yum install elasticsearch
  • Edit the configuration, then the line “network.host:” and update it to “network.host: localhost”. Save changes
sudo vi /etc/elasticsearch/elasticsearch.yml
  • Start service and set it to auto run on boot up
/etc/init.d/elasticsearch status
sudo chkconfig --levels 235 elasticsearch on

Install Kibana 5.6.1 on CentOS 7, RHEL

  • Download and install the Public Signing  Key
sudo rpm --import https://artifacts.elastic.co/GPG-KEY-elasticsearch
  • Create a file called “kibana.repo” in “/etc/yum.repos.d/” directory
sudo vi /etc/yum.repos.d/kibana.repo
  • Add the following config into the repo file
[kibana-5.x]
name=Kibana repository for 5.x packages
baseurl=https://artifacts.elastic.co/packages/5.x/yum
gpgcheck=1
gpgkey=https://artifacts.elastic.co/GPG-KEY-elasticsearch
enabled=1
autorefresh=1
type=rpm-md
  • Now install kibana
sudo yum install kibana
  • Confirm you can Stop and Start Kibana
sudo -i service kibana stop
sudo -i service kibana start
  • Check if you are running Systemd or SysV init
ps -p 1
  • Configure Kibana to start automatically when system reboots.
READ  Setup Do Not Disturb While Driving on iOS11

—– For SysV init —–

sudo chkconfig --add kibana
  • Stop and Start Kibana
sudo -i service kibana stop
sudo -i service kibana start

—– For systemd —–

sudo /bin/systemctl daemon-reload

sudo /bin/systemctl enable kibana.service sudo systemctl stop kibana.service sudo systemctl start kibana.service

  • To access the kibana page, open the following URL address on your browser:
http://localhost:5601

Note that You can install nginx and configure it to act as a proxy server. This would enable you access kibana via port 80

About the author

Admin

A passionate Linux and Open Source user. In my spare time, I love developing mobile games for fun (You can check my games out iOS Store | Google Play Store) and also spend time contributing to the Linux community.

Leave a Reply

Be the First to Comment!

Notify of
avatar
wpDiscuz