Can we access Elastic Search API over Internet, i.e. Using IP address of server?


(trusha) #1

Can we access Elastic Search API over Internet, i.e. Using IP address of server ?


(David Pilato) #2

Yes you can.


(trusha) #3

In my case I am not able to access ES API using IP address of server. Can you please let me know the changes that has to be made in config file or where ever it is needed to make it work.


(David Pilato) #4

network.host is what you need to modify if you want to expose your node.


(trusha) #5

I have Elasticsearch 2.1.0 Hosted on Azure Virtual Machine, I have tried with setting network.host to public IP of Server. But still it doesnt work for me. Is there any other Network setting?


(David Pilato) #6

Check your azure network settings. Endpoints.
9200 port should be opened.


(trusha) #7

Still no luck. When setting Public IP to network.host in Config, ES running window automatically gets terminated. Can you please send me sample Config file where you have configured Public IP address and accessed the ES API over Internet. Thanks in advance.


(David Pilato) #8

Sorry I can't.

May be the other way around?

You copy and paste all settings here and do some screenshots of your azure network settings?


(trusha) #9

here are the settings done in Elastisearch.yml


(David Pilato) #10

I think you need to set:

network.host: 10.52.88.31

If it does not work, try with:

network.host: 13.67.60.228

(system) #11