Logstash-forwarder reconnect with round robin DNS


(Guido) #1

You can configure a list of servers listening for messages. According to the docs, logstash-forwarder will pick one at random until it appears to be dead or unresponsive.

For example:

"servers": [ "10.10.10.1:5043", "10.10.10.2:5043" ],

I wonder whether you can use Round Robin DNS to balance the load:

"servers": [ "domain-with-multiple-ip-addresses:5043" ],

I'd like to do that to avoid the need to reconfigure all the forwarders every time you deploy a new listening server or when a server changes its IP. Would logstash-forwarder be able to reconnect given that configuration?


(Mark Walkom) #2

Yes you can, you see here that it does a DNS lookup if needed.


(system) #3