Install logstash 5
- Download and install the public signing key (ignore this if you have imported the same key during other package installation):
# rpm --import https://artifacts.elastic.co/GPG-KEY-elasticsearch
- Add below lines to sources.list to /etc/yum.repos.d/logstash.repo:
[logstash-5.x]
name=Elastic repository for 5.x packages
baseurl=https://artifacts.elastic.co/packages/5.x/yum
gpgcheck=1
gpgkey=https://artifacts.elastic.co/GPG-KEY-elasticsearch
enabled=1
autorefresh=1
type=rpm-md
- Install logstash:
# yum -y install logstash
- Set logstash to start automatically using systemd:
# systemctl daemon-reload && systemctl enable logstash.service
- Stop and start logstash:
# systemctl stop logstash.service && sudo systemctl start logstash.service
Prepared by :
Date : 2 Dec 2016
Last updated: 31 August 2017