Member-only story
Logstash: The Easiest Way To Install It On Ubuntu 20.04
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