Would you like to learn how to do a ElasticSearch and Kibana installation on Ubuntu Linux? In this tutorial, we are going to show you how to install Kibana on a computer running Ubuntu Linux and ElasticSearh.

• Ubuntu version: 18
• Ubuntu version: 19
• ElasticSearch version: 7.4.0
• Kibana version: 7.4.0

Hardware List:

The following section presents the list of equipment used to create this ElasticSearch tutorial.

Every piece of hardware listed above can be found at Amazon website.

Tutorial ElasticSearch – Installation on Ubuntu Linux

Use apt-get to install the required packages.

Copy to Clipboard

Download and install the ElasticSearch repository key.

Copy to Clipboard

Add the official ElasticSearch repository to your APT database

Copy to Clipboard

Update the APT-GET database and install the ElasticSearch package.

Copy to Clipboard

Edit the ElasticSearch configuration file named: elasticsearch.yml

Copy to Clipboard

Add the following lines at the end of the file.

Copy to Clipboard

Here is the complete elasticsearch.yml file with our configuration:

Copy to Clipboard

In our example, we allow the ElasticSearch service only on the server IP address: 192.168.15.15

Start the ElasticSearch service.

Copy to Clipboard

The ElasticSearch log should show the following information:

Copy to Clipboard

Use the NETSTAT command to verify if the service is running.

In our example, the ElasticSearch service is running on ports 9200 and 9300.

Copy to Clipboard

Use the following comand to test your ElasticSearch installation.

Copy to Clipboard

The ElasticSearch service should reply your request.

Copy to Clipboard

Another way to test your Elasticsearch installation is to use your browser.

Open your browser and enter the IP address of your ElasticSearch server plus :9200.

In our example, the following URL was entered in the Browser:

• http://192.168.15.15:9200

The ElasticSearch rest interface should answer your request:

elasticsearch install ubuntu

Configure the ElasticSearch service to start during boot time.

Copy to Clipboard

Congratulations! You have finished the ElasticSearch installation on Ubuntu Linux.

Tutorial Kibana – Installation on Ubuntu Linux

After finishing the ElasticSearch installation, we can proceed to the Kibana installation.

Use the following command to install the Kibana package.

Copy to Clipboard

Edit the Kibana configuration file named: kibana.yml

Copy to Clipboard

Add the following lines at the end of the file.

Copy to Clipboard

Here is the complete kibana.yml file with our configuration:

Copy to Clipboard

Edit the sysctl.conf configuration file.

Copy to Clipboard

Add the following lines at the end of the sysctl.conf file.

Copy to Clipboard

Force the system to read the sysctl.conf file.

Copy to Clipboard

In our example, we allow Kibana service only on the server IP address: 192.168.15.15

Kibana will connect to the ElasticSearch server using the IP address 192.168.15.15.

Start the Kibana service.

Copy to Clipboard

Use the NETSTAT command to verify if the Kibana service is running.

In our example, the Kibana service is running on port 5601.

Copy to Clipboard

Configure the Kibana service to start during boot time.

Copy to Clipboard

Congratulations! You have finished the Kibana installation on Ubuntu Linux.

Tutorial Kibana – Web Interface

Now, we need to access the Kibana dashboard.

Open your browser and enter the IP address of your web server plus :5601.

In our example, the following URL was entered in the Browser:

• http://192.168.15.15:5601

Select an answer to the question below.

kibana welcome screen

In our example, we are going to import sample data offered by the Kibana installation.

kibana sample

Access the Kibana sampla data.

kibana web log sample

Here is a Kibana dashboard example.

kibana view data button

Congratulations! You have access to the Kibana web interface.