Elasticsearch Cluster Installation with 3 Multiple Servers

HKN MZ
11 min readJul 19, 2022

Hi everyone, In this article I will share Elasticsearch-8.* and Kibana-8.* installation with 3 servers step by step.

I will use Ubuntu20.04 operating system. So I allready have Ubuntu20.04 operating system on my vmware tool. I assume you are allready have one Ubuntu operating system too or other linux operating systems(some commands are different against your linux operating system).

  • Install and configure elasticsearch called master-1 for elastic1 server (ip:192.168.41.157)
  • Install and configure elasticsearch called node-1 for elastic2 server (ip:192.168.41.147)
  • Install and configure elasticsearch called node-2 for elastic3 server (ip:192.168.41.146)
  • Install and configure kibana for elastic1 server (ip:192.168.41.157)

Installation and Configuration for Master-1

Download and install the public signing key. Use the wget command to pull the public signing key:

elastic1@elastic1:~$ wget -qO - https://artifacts.elastic.co/GPG-KEY-elasticsearch | sudo gpg --dearmor -o /usr/share/keyrings/elasticsearch-keyring.gpg

You may need to install the apt-transport-https package on Debian before proceeding:

elastic1@elastic1:~$ sudo apt-get install apt-transport-https

Save the repository definition to /etc/apt/sources.list.d/elastic-8.x.list:

elastic1@elastic1:~$ echo "deb [signed-by=/usr/share/keyrings/elasticsearch-keyring.gpg] https://artifacts.elastic.co/packages/8.x/apt stable main" | sudo tee /etc/apt/sources.list.d/elastic-8.x.list

Update the ubuntu packages Then, run the elasticsearch installation.

elastic1@elastic1:~$ sudo apt update && sudo apt install elasticsearch
-- Security autoconfiguration information --
Authentication and authorization are enabled.
TLS for the transport and HTTP layers is enabled and configured.
The generated password for the elastic built-in superuser is : r3l6o-Ghce_16d07HQ1pIf this node should join an existing cluster, you can reconfigure this with…
HKN MZ

I am writing about Sql Server, Elasticsearch and Python. İ am an Database Administrator on SQL Server and Elasticsearch more than 5+ years.