1. Download address https://www.elastic.co/downloads/logstash
Download the Logstash installation file that matches your hosting environment
You can download the installation package yourself, or you can use YUM
YUM
1. Download and install the public signing key
rpm --import https://artifacts.elastic.co/GPG-KEY-elasticsearch
2. Add the following to the file with the .repo suffix in the /etc/yum.repos.d/ directory
[logstash-5.x] name=Elastic repository for5.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
3. Installation
yum install logstash