Hi there
Unfortunately, I can not add another node to my single node cluster.
The elasticsearch.yml
of master node is:
cluster.name: logServer
node.name: elk1
node.master: true
node.data: true
path.data: /var/lib/elasticsearch
path.logs: /var/log/elasticsearch
network.host: 0.0.0.0
transport.host: 172.22.34.36
http.port: 9200
discovery.seed_hosts:
- 172.22.34.36:9300
- 172.22.34.37:9300
and the elasticsearch.yml
of new node is:
cluster.name: logServer
node.name: elk2
node.master: false
node.data: true
path.data: /var/lib/elasticsearch
path.logs: /var/log/elasticsearch
network.host: 0.0.0.0
transport.host: 172.22.34.37
http.port: 9200
discovery.seed_hosts:
- 172.22.34.36:9300
- 172.22.34.37:9300
My kibana.yml
is:
server.port: 5601
server.host: 0.0.0.0
server.name: "elk-test"
elasticsearch.hosts: ["http://localhost:9200","http://172.22.34.37:9200"]
But when I restart the services, I see the bellow picture in Kibana:
Where is the problem?
When I type netstat -tnlp
in my master node (and also even in another node), I see:
tcp 0 0 0.0.0.0:5601 0.0.0.0:* LISTEN 24387/node
tcp6 0 0 127.0.0.1:9600 :::* LISTEN 944/java
tcp6 0 0 :::9200 :::* LISTEN 21868/java
tcp6 0 0 172.22.34.36:9300 :::* LISTEN 21868/java
tcp6 0 0 :::5044 :::* LISTEN 944/java
tcp6 0 0 :::5045 :::* LISTEN 944/java