Installing Logstash on Linux Mint

Logstash is a tool used to collect, parse and store logs for searching and analyzing. In this tutorial, you will learn how to install Logstash on Linux Mint.

Prerequisites

Before proceeding with the installation process, you need to ensure that your system meets the following requirements:

Step 1: Install Java

Logstash requires Java to run, and it's recommended to use Java JDK 8 or higher. If you don't have Java installed, you can install it using the following command:

sudo apt install openjdk-8-jdk

After installation, you can verify the Java version by running the command:

java -version

Step 2: Download and Install Logstash

Logstash provides installation packages for different operating systems. We will use the Debian package for Linux Mint.

  1. Download the Logstash Debian package by running the following command:
wget https://artifacts.elastic.co/downloads/logstash/logstash-7.15.1-amd64.deb

Replace the version number with the latest version available on the Logstash website.

  1. Install the downloaded package using the dpkg command:
sudo dpkg -i logstash-7.15.1-amd64.deb

Step 3: Start and Enable Logstash Service

Once the installation process completes, you can start and enable the Logstash service to ensure it runs automatically on system boot:

sudo systemctl start logstash.service
sudo systemctl enable logstash.service

Step 4: Verify the Installation

Run the following command to check the status of the Logstash service:

sudo systemctl status logstash.service

If the service is running, you should see the following output:

● logstash.service - logstash
   Loaded: loaded (/usr/lib/systemd/system/logstash.service; enabled; vendor preset: enabled)
   Active: active (running) since Sat 2021-11-13 21:50:36 UTC; 3s ago

Conclusion

In this tutorial, you have learned how to install Logstash on Linux Mint. You can now use Logstash to collect, parse, and store logs for searching and analyzing.

If you want to self-host in an easy, hands free way, need an external IP address, or simply want your data in your own hands, give IPv6.rs a try!

Alternatively, for the best virtual desktop, try Shells!