How to Install and Setup ELK on Ubuntu 20 with Login Page.

A Step-by-Step Guide that you won’t be able to find anywhere

Neil S.
Neil S.
Oct 29, 2020 · 4 min read
Image for post
Image for post
Elastic.co

What is ELK?

is the acronym for three open source projects: Elasticsearch, Logstash, and Kibana.

  • Elasticsearch is a search and analytics engine.
  • Logstash is a server‑side data processing pipeline that ingests data from multiple sources simultaneously, transforms it, and then sends it to a “stash” like Elasticsearch.
  • Kibana lets users visualize data with charts and graphs in Elasticsearch.

So without wasting any further time, let’s dive into the installation part. Before proceeding I wanted to clarify certain things.

This installation is for Ubuntu version 20 with 16gigs of ram. The Minimum Requirements for ELK Stack to run is 4GB. So please verify and then proceed.

ElasticSearch Logstash Kibana Ubuntu Installation

java --version
sudo apt-get update

Check, the java version and then update your system. If not java is not the latest version. I highly recommend doing it so.

Install Elasticsearch

Image for post
Image for post
Author’s Ubuntu Terminal

Install Logstash

Install Kibana

Image for post
Image for post
Author’s Ubuntu Terminal

If it doesn’t show any kind of error, visit your browser and type By default kibana web-interface runs on this post.

Image for post
Image for post
Author’s Browser Window

After performing these exact steps correctly, you have successfully installed ELK Stack onto your system. You can check all the services status by running above mentioned commands.

Now let us set up the login page for kibana. (without using trial)

This will open the editor on your terminal screen, press ‘i’ and insert the following line at the end of the file. Press ‘Esc: wq!” to save the file. (You can also use the nano editor)

Image for post
Image for post
Author’s Ubuntu Terminal

Then, to set up the bootstrap password using “elastic search-setup-password”cd /usr/share/elasticsearch/bin/

Image for post
Image for post
Author’s Ubuntu Terminal

In the directory, you will be able to see the files likes these in the above image.

After setting up the password for the elastic search you need to make some changes in the kibana.yml file. Verify your user

Now change the directory to sudo vi /etc/kibana/kibana.yml & enter the user and password for the kibana. Please make sure to remember the password.

Image for post
Image for post

Restart both the services and visit the URL in your browser.

Image for post
Image for post
Author’s browser window

To check the trial version go to Stack Management ->License Management.

Image for post
Image for post
Author’s browser window

Hence, we have successfully installed elk and set up a login page for kibana on a ubuntu operating system.

Image for post
Image for post

👋

🐦👥📷 💬

Image for post
Image for post

If this post was helpful, please click the clap 👏 button below a few times to show your support for the author! ⬇

FAUN

The Must-Read Publication for Creative Developers & DevOps Enthusiasts

Sign up for FAUN

By FAUN

Medium’s largest and most followed independent DevOps publication. Join thousands of aspiring developers and DevOps enthusiasts Take a look

By signing up, you will create a Medium account if you don’t already have one. Review our Privacy Policy for more information about our privacy practices.

Check your inbox
Medium sent you an email at to complete your subscription.

Neil S.

Written by

Neil S.

DevOps Engineer | Pro-Reader | Writer at Illumination, The Ascent, The Startup, FAUN and TPGSG)

FAUN

FAUN

The Must-Read Publication for Creative Developers & DevOps Enthusiasts. Medium’s largest DevOps publication.

Neil S.

Written by

Neil S.

DevOps Engineer | Pro-Reader | Writer at Illumination, The Ascent, The Startup, FAUN and TPGSG)

FAUN

FAUN

The Must-Read Publication for Creative Developers & DevOps Enthusiasts. Medium’s largest DevOps publication.

Medium is an open platform where 170 million readers come to find insightful and dynamic thinking. Here, expert and undiscovered voices alike dive into the heart of any topic and bring new ideas to the surface. Learn more

Follow the writers, publications, and topics that matter to you, and you’ll see them on your homepage and in your inbox. Explore

If you have a story to tell, knowledge to share, or a perspective to offer — welcome home. It’s easy and free to post your thinking on any topic. Write on Medium

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store