Running elasticsearch on a v-server


#1

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!


(Mark Walkom) #2

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


#3

So it would be network.host: 0.0.0.0 right?


(Mark Walkom) #4

Yep :slight_smile:


#5

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!


(Mark Walkom) #6

What do your ES logs show then?


#7

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.


(Mark Walkom) #8

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


#9

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:


(system) #10

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