Elasticsearch port 9200 or 9300?

Can anyone explain which port number is elasticsearch listening?

When I am running elasticsearch and I can see

tcp6       0      0 :::9200                 :::*                    LISTEN      12390/java
tcp6       0      0 :::9300                 :::*                    LISTEN      12390/java

Also for discovery.zen.ping.unicast.hosts, is it 9300?

For ELB of eligible masters should add both listeners for 9200 and 9300?

9200 is for REST.
9300 for nodes communication...


thanks for the reply.

so both of them should be open on the elasticsearch eligible master nodes?

At least 9300.

For 9200, it's up to you. It depends if you want to send REST requests to that node.


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

For anyone visiting this topic, please see What are ports 9200 and 9300 used for?.