In this chapter, we went through many steps to configure an Elastic Stack, which is a collection of four main components—Elasticsearch, Logstash, Kibana, and Beats. For the setup, we used three VMs; we hosted two Elasticsearch nodes, and then, on a single system, we installed Logstash and Kibana, using version 6.5 for each of the components. We installed Elasticsearch using the RPM repository provided by Elastic Stack; yum was used to install the required packages. Elasticsearch configuration was done using the elasticsearch.yml file, which controls how elasticsearch behaves. We defined a number of settings that are required for a functional cluster, such as the cluster.name parameter and discovery.zen.minimum_master_nodes.
We added a new Elasticsearch node by configuring the cluster name and the discovery settings, which allows the node to join the cluster automatically...