{"id":3448,"date":"2019-06-29T16:24:08","date_gmt":"2019-06-29T13:24:08","guid":{"rendered":"https:\/\/kifarunix.com\/?p=3448"},"modified":"2024-03-11T22:54:15","modified_gmt":"2024-03-11T19:54:15","slug":"install-logstash-7-on-fedora-30-fedora-29-centos-7","status":"publish","type":"post","link":"https:\/\/kifarunix.com\/install-logstash-7-on-fedora-30-fedora-29-centos-7\/","title":{"rendered":"Install Logstash 7 on Fedora 30\/Fedora 29\/CentOS 7"},"content":{"rendered":"\n

This guide will focus on how to install Logstash 7 on Fedora 30\/Fedora 29\/CentOS 7 as a continuation of our guide on how to setup Elastic Stack 7 on Fedora 30\/Fedora 29\/CentOS 7<\/a>.<\/p>\n\n\n\n

The installation of the first two components of ELastic Stack, Elasticsearch and Kibana have been discussed in our previous guides;<\/p>\n\n\n\n

Install Elasticsearch 7 on Fedora 30<\/a><\/p>\n\n\n\n

Install Elasticsearch 7.x on CentOS 7\/Fedora 29<\/a><\/p>\n\n\n\n

Install Kibana 7 on Fedora 30\/Fedora 29\/CentOS 7<\/a><\/p>\n\n\n\n

Once you have Elasticsearch and Kibana installed, proceed to install Logstash.<\/p>\n\n\n\n

Installing Logstash 7 on Fedora 30\/Fedora 29\/CentOS 7<\/h2>\n\n\n\n

Prerequisites<\/h3>\n\n\n\n

As a prerequisite, Logstash requires Java 8 or Java 11. You can install Java 8 on Fedora 30\/Fedora 29\/CentOS 7 by running the command below;<\/p>\n\n\n\n

yum install java-1.8.0-openjdk.x86_64<\/code><\/pre>\n\n\n\n

Once the installation is done, you can verify the version as in below;<\/p>\n\n\n\n

java -version\nopenjdk version \"1.8.0_212\"\nOpenJDK Runtime Environment (build 1.8.0_212-b04)\nOpenJDK 64-Bit Server VM (build 25.212-b04, mixed mode)<\/code><\/pre>\n\n\n\n

If you need to use Java 11, install it as shown below;<\/p>\n\n\n\n

dnf install java-11-openjdk.x86_64<\/code><\/pre>\n\n\n\n

Installing Logstash 7 on Fedora 30\/Fedora 29\/CentOS 7<\/h3>\n\n\n\n

As stated before, this is a continuation of our guide on how to setup Elastic Stack on Fedora 30\/Fedora 29\/CentOS 7. Therefore, we have already created the Elastic Stack repos in our servers.You can however create Elastic 7.x repos by executing the command below;<\/p>\n\n\n\n