Amey Khadatkar
Amey Khadatkar

Reputation: 414

Elasticsearch on Azure virtual machine

I have installed elasticsearch on Azure virtual machine. I have installed the elasticsearch service which which automatically starts on system start up.

Everything works fine on VM. I can access the 9200 port of elasticsearch instance.

The problem is I can not access it with the help of dns name of the virtual machine i.e. xyz.cloudapp.net:9200

I have created endpoints for 9200 and 9300 port.

enter image description here

I want the Elasticsearch on just one VM for now. Am I missing any steps?

Upvotes: 1

Views: 832

Answers (1)

Amey Khadatkar
Amey Khadatkar

Reputation: 414

The answer to my question is here. I needed to add the following to my Elasticsearch config file

network.host: [_local_, _site_]

This works like a charm.

This has been added in ElasticSearch since 2.x.x version.

Thanks

Upvotes: 2

Related Questions