logging, debian,

How to install Logstash on Debian 11

Nov 14, 2021 · 1 min read · Post a comment

Every data processing service needs a data processing pipeline that will help you to gather data from different sources. Nowadays, Logstash is one of the most efficient and required data processing pipeline which is usually used with Elasticsearch. Let’s see how to install it on Debian 11.

Prerequisites

  • Debian 11
  • sudo privileges

Install Logstash on Debian 11

Step 1. Download the public GPG key.

wget -qO - https://artifacts.elastic.co/GPG-KEY-elasticsearch | sudo apt-key add -

Step 2. Install apt transport https package.

sudo apt-get install apt-transport-https

Step 3. Add the repo to etc/apt/sources.list.d.

echo "deb https://artifacts.elastic.co/packages/7.x/apt stable main" | sudo tee -a /etc/apt/sources.list.d/elastic-7.x.list

Step 4. Update deb packages.

sudo apt-get update

Step 5. Install Logstash.

sudo apt-get install logstash

Conclusion

Feel free to leave a comment below and if you find this tutorial useful, follow our official channel on Telegram.