Adding noeud for elasticsearch cluster

hello community ,
i need help please ,
i had installer ELK stack in my virtuelle machine with one noeud ( elasticsearch , kibana , logstash)
now i wish add a second noeud for my cluster so i had installed a second VM then i had installed elasticsearch . and i had donne necessary configuration for elasticseach .yml file

this first coniguration in about the principal noeud : my-application node-1 /disk2/elasticsearch
path.logs: /var/log/elasticsearch
discovery.seed_hosts: ["", ""]
cluster.initial_master_nodes: ["node-1", "node-2"] true true
indices.lifecycle.poll_interval: 10s
xpack.monitoring.collection.enabled: true
xpack.monitoring.elasticsearch.collection.enabled: true

and this is configuration file fort the noeud witch i want to add : my-application node-2 /var/lib/elasticsearch
path.logs: /var/log/elasticsearch
discovery.seed_hosts: ["", ""]
cluster.initial_master_nodes: ["node-1", "node-2"]
whene i restart elasticsearch it restart correctlly but the second noeud doesn't addeded for my cluster .
please i need help .. i want the know what is a probleme if it is configuration probleme or i need mor things de add - un ather commende to add ?? or probleme of path logs witch is not same for thes files ..
Thanks a lot

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.