You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The IP address for the GELF server's domain name was changed but the client didn't pick up the new IP address when using the UDP transport. Instead, it keeps trying to send logs to the old unreachable IP address. I believe the problem is coming from the following line of code:
InetSocketAddress only performs resolution at construction time, and since createBootstrap(...) is just called during initialisation, IP address changes aren't picked up. The current solution is to restart the application but of course this isn't ideal. GelfMessageUdpEncoder's constructor should be changed to take in the hostname and port instead of InetSocketAddress so that they can be used to create an InetSocketAddress object in the encode(...) method.
The text was updated successfully, but these errors were encountered:
The IP address for the GELF server's domain name was changed but the client didn't pick up the new IP address when using the UDP transport. Instead, it keeps trying to send logs to the old unreachable IP address. I believe the problem is coming from the following line of code:
gelfclient/src/main/java/org/graylog2/gelfclient/transport/GelfUdpTransport.java
Line 62 in cdb0241
InetSocketAddress only performs resolution at construction time, and since createBootstrap(...) is just called during initialisation, IP address changes aren't picked up. The current solution is to restart the application but of course this isn't ideal. GelfMessageUdpEncoder's constructor should be changed to take in the hostname and port instead of InetSocketAddress so that they can be used to create an InetSocketAddress object in the encode(...) method.
The text was updated successfully, but these errors were encountered: