Installing Logstash
Installing Logstash
APT
Download and install the Public Signing Key:
wget -qO - https://artifacts.elastic.co/GPG-KEY-elasticsearch | sudo gpg --dearmor -o /usr/share/keyrings/elastic-keyring.gpgYou may need to install the apt-transport-https package on Debian before proceeding:
sudo apt-get install apt-transport-httpsSave the repository definition to /etc/apt/sources.list.d/elastic-8.x.list:
echo "deb [signed-by=/usr/share/keyrings/elastic-keyring.gpg] https://artifacts.elastic.co/packages/8.x/apt stable main" | sudo tee -a /etc/apt/sources.list.d/elastic-8.x.listUse the
echomethod described above to add the Logstash repository. Do no useadd-apt-repositoryas it will add adeb-srcentry as well, but we do not provide a source package. If you have added thedeb-srcentry, you will see an error like the following:Unable to find expected entry 'main/source/Sources' in Release file (Wrong sources.list entry or malformed file)Just delete the
deb-srcentry from the/etc/apt/sources.listfile and the installation should work as expected.
Run sudo apt-get update and the repository is ready for use. You can install it with:
sudo apt-get update && sudo apt-get install logstashRunning Daemon
sudo /bin/systemctl daemon-reload
sudo /bin/systemctl enable logstash.serviceRunning Logstash
sudo systemctl start logstashReference
Last updated