Steps to install Logstash 5.0 on Centos 6.8
Prerequisite
Logstash 5.0 will require java version 1.8.0_73 you can use either oracle JDK or OpenJDK, you can run this to install OpenJDK versionyum install java-1.8.0-openjdk
Install Logstash
Download and Install Public Signing Keyrpm --import https://artifacts.elastic.co/GPG-KEY-elasticsearchThen use the following script to create a file called ELK5.repo on /etc/yum.repos.d and fill it with ELK 5.0 repository information
echo '[ELK-5.x] name=ELK repository for 5.x packages (Elasticsearch, Kibana, Logstash) 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 ' | sudo tee /etc/yum.repos.d/ELK5.repothen continue to install Logstash
sudo yum install Logstash
Test Installation
To test your installation you can do the following/usr/share/logstash/bin/logstash -e 'input { stdin{}} output {stdout{}}'setting input to stdin means that you want anything you type on keyboard as input, and setting output as stdout means that the output will be displayed on your console. the following is the sample display
No comments :
Post a Comment