logback-more-appenders icon indicating copy to clipboard operation
logback-more-appenders copied to clipboard

ERROR o.f.logger.sender.RawSocketSender - org.fluentd.logger.sender.RawSocketSender java.net.SocketException: Connection timed out (Write failed)

Open Einsteinl opened this issue 3 years ago • 2 comments

In my use case, we can not assume that fluentd will always be running. Ideally, the logger would log as usual if fluentd is running; if it is not running, it should probably log a warning and move on instead of throwing exceptions; finally, it should silently try to reconnect in the background and resume logging as soon as a connection is available.

Ideally the library would also do some in-memory buffering to minimize loss of log msgs. Thoughts?

Einsteinl avatar Sep 07 '20 06:09 Einsteinl

@Einsteinl Yes, it should be so. I'll check it.

sndyuk avatar Oct 01 '20 12:10 sndyuk

@Einsteinl You can use fluency for the time being which has the retry feature. fluentd-logger doesn't have the retry feature but the feature must be needed on logback-more-appenders. I will implement it when I have time.

sndyuk avatar Oct 03 '20 15:10 sndyuk