Versioner sammenlignet

Nøgle

  • Linjen blev tilføjet.
  • Denne linje blev fjernet.
  • Formatering blev ændret.

I Installed the ELK stacks as usual:

Kodeblok
sudo apt-get install openjdk-8-jdk
wget -qO - https://packages.elastic.co/GPG-KEY-elasticsearch | sudo apt-key add -
echo "deb https://artifacts.elastic.co/packages/5.x/apt stable main" | sudo tee -a /etc/apt/sources.list.d/elasticsearch-5.x.list
sudo apt-get update && sudo apt-get install elasticsearch

 

But , but then I had to add nodes. A lot of google gave a lot of more og less usefull hints, so here is what i did:

...

Secondly, I changed the same on the next node (elkserver2) and added the IP on elkserver1 in the /etc/elasticseach/elasticseach.yml, changing:

Kodeblok
discovery.zen.ping.unicast.hosts: ["host1","host1"]

...

But the node never connected to the clustedcluster.

After a short part of troubleshooting, ES only listens pr. default on 127.0.0.0:9200, so in /etc/elasticseach/elasticseach.yml do change

...

After successfull join, I changes changed:

Kodeblok
discovery.zen.ping.unicast.hosts: ["77.243.52.135"]

...

on both nodes.

For the 3rd node (elkserver3), the trickt was the same, and in the end, the /etc/elasticseach/elasticseach.yml had:

...