Setting up and integrating the ELK stack
The first thing you need to do is install Java – ELK depends on Java to run, so we need to have it installed. Java has two different install candidates: the official one from Oracle and the open source OpenJDK. Since we are trying to stay in the open source ecosystem, we'll install OpenJDK. In this book, we are using CentOS 8 as our platform, so the
yum package manager will be used extensively.
Let's start with the prerequisite packages. The only prerequisite package we need in order to install Java is the
java-11-OpenJDK-devel package (substitute "11" with the current version of OpenJDK). So, here, we need to run the following command:
yum install java-11-openjdk-devel
After issuing that command, you should get a result like this...