Steps to install Logstash on Ubuntu and Debian:
Add ELK repository to apt.
Add GPG key of
ELK's repository via
apt-key.
$ wget --quiet --output-document=- https://artifacts.elastic.co/GPG-KEY-elasticsearch | sudo apt-key add -
[sudo] password for user:
OK
Add
ELK's repository to
apt's repository list.
$ echo "deb https://artifacts.elastic.co/packages/6.x/apt stable main" | sudo tee -a /etc/apt/sources.list.d/elastic-6.x.list
deb https://artifacts.elastic.co/packages/6.x/apt stable main
Update list of available packages from the newly added repository.
$ sudo apt update
Install latest
Java Runtime Environment.
$ sudo apt install --assume-yes openjdk-11-jre
Install
logstash package.
$ sudo apt install --assume-yes logstash
Configure logstash options located in /etc/logstash/logstash.yml.
Allow connection from remote host.
xxx: 0.0.0.0
Configure
logstash to automatically start during boot.
$ sudo systemctl enable logstash
Start
logstash service.
$ sudo systemctl start logstash
Author:
Mohd Shakir Zakaria Cloud architect by profession but always consider himself as a developer, entrepreneur and an opensource enthusiast.
Discuss the article:
Comment anonymously. Login not required.