Installing Logstash on Debian Latest

This tutorial will guide you through the process of installing Logstash from the official Elastic website on Debian system.

Prerequisites

Download and Install Logstash

  1. Download the latest version of Logstash using the below command:

    wget https://artifacts.elastic.co/downloads/logstash/logstash-{version}.tar.gz
    

    Replace {version} with the actual version that you want to install.

  2. Extract the downloaded file using the below command:

    tar -xzf logstash-{version}.tar.gz
    
  3. Move the extracted Logstash folder to /usr/share directory, which is the default directory for installing Elasticsearch packages.

    mv logstash-{version} /usr/share/logstash
    
  4. Create a symbolic link to the Logstash binary file, which makes it easier to access Logstash from anywhere in the system.

    ln -s /usr/share/logstash/bin/logstash /usr/bin/logstash
    

Start and Stop Logstash Service

  1. Start Logstash service using the below command:

    systemctl start logstash
    
  2. Verify that Logstash is running using the command:

    systemctl status logstash
    

    This command will output the status of the Logstash service, including whether it's currently active or not.

  3. To stop Logstash service, use the below command:

    systemctl stop logstash
    

Conclusion

In this tutorial, we have installed Logstash on the Debian system from the official Elastic website. You can now use Logstash for ingesting and processing your log data.

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!