Running elasticsearch on a v-server

Hello!

I'm trying to run elasticsearch on a v-server that has a private ip adress bound to it's interface which translates into a public ip address. So how do I configure elasticsearch properly in order to reach elasticsearch both locally and externally?

Thanks in advance!

Just use 0.0.0.0, so it'll bound to anything.

So it would be network.host: 0.0.0.0 right?

Yep :slight_smile:

I have tried that before.

When I edited the config file and restarted the service, the service was up for 10 seconds and then another
service elasticsearch status
command showed me
[FAIL] elasticsearch is not running ... failed!

What do your ES logs show then?

That's also a thing I don't understand.

When I do: cat /var/log/elasticsearch/elasticsearch.log

I get log output from 10 hours ago...So I don't know how I can send you a log from the current situation.

If you changed the cluster name then the log file will be a different name.

1 Like

Wow, okay, didn't know that, thank you very much!

There was an issue with the memory going on, everything is working now.

Thanks again! :slight_smile:

1 Like

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