Member-only story

Logstash: The Easiest Way To Install It On Ubuntu 20.04

Akintola L. F. ADJIBAO
2 min readOct 8, 2021

--

Photo by Andrea Piacquadio from Pexels

This is the straight and straightforward way to install Logstash either on your Ubuntu 20.04 desktop or your Ubuntu 20.04 server instance.

Do you want to extract data from some log files or a database? And you’ve just heard about Logstash and want to give it a try? Well, you’ve come to the right guide.

1- Update your system

First things first. Let’s start on the right basis.

sudo apt update && apt upgrade

2- Install Logstash

Logstash uses Java. It requires one of these versions of java:

  • Java 8
  • Java 11
  • Java 15

Let’s go with the oldest to make things simple.

sudo apt install openjdk-8-jre-headlesssudo apt updatesudo apt install logstash

3- Set up your first Logstash pipeline

Let us assume that you want to parse an apache access log file.

To create your first Logstash pipeline:

  • Install Elasticsearch

--

--

Akintola L. F. ADJIBAO
Akintola L. F. ADJIBAO

Written by Akintola L. F. ADJIBAO

Senior DevOps Engineer (8+years), Speaker, CKA | AWS Certified DevOps Professional | Terraform Certified https://www.upwork.com/freelancers/~01d11b6c65945a1160

Responses (1)