when I do curl on localhost IP It is working but when I am doing it on node IP. It is showing the following error (curl: (7) Failed to connect to 192.168.21.221:9200; Connection refused).
In netstat, the port is listening only on the loopback address
[root@elk ~]# netstat -tnlpu | grep 9200 tcp6 0 0 127.0.0.1:9200 :::* LISTEN 14968/java tcp6 0 0 ::1:9200 :::* LISTEN 14968/java
- when I am applying following changes to /etc/elasticsearch/elasticsearch.yml file and restart the elasticsearch service it is failing
network.host: 0.0.0.0 network.host: [_local_, _site_, _global_] network.host: 0.0.0.0 network.bind_host: 0.0.0.0 network.publish_host: 0.0.0.0