Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

elasticsearch listen to multiple ips

Tags:

Is it possible to listen to multiple host adresses so that I can listen to localhost requests AND private IP requests?

something like:

network.host: "127.0.0.1", "192.168.1.4" 
like image 888
RecycleRobot Avatar asked Nov 26 '13 16:11

RecycleRobot


Video Answer


1 Answers

In fact yes it is. Use the JSON notation.

This is what I used in my configuration: network.bind_host: ["yourhost", "localhost"] and network.publish_host: yourhost as you don't want to send multicast packets on the loopback interface.

like image 178
Fred Avatar answered Sep 28 '22 01:09

Fred