Open runbean opened 1 year ago
Hi, I've the same issue. I've done the following little patch in my servers.
In the register function, replace :
@socket = UDPSocket.new
by :
addr_test = IPSocket.getaddress(@host)
if IPAddr.new(addr_test).ipv6?
@socket = UDPSocket.new(Socket::AF_INET6)
elsif IPAddr.new(addr_test).ipv4?
@socket = UDPSocket.new(Socket::AF_INET)
end
It work with ipv6, ipv4, hostname with IPv6 and/or IPv4 resolution.
in logstash-output-udp-3.2.0/lib/logstash/outputs/udp.rb @socket = UDPSocket.new not support ipv6