[syslog-ng] try tcp destination but fail quickly if unavailable

Balazs Scheidler bazsi at balabit.hu
Mon Apr 5 09:03:40 CEST 2010

On Thu, 2010-04-01 at 15:42 -0400, Jan Schaumann wrote:
> Hello,
> I have a tcp destination that, unfortunately, may occasionally become
> unavailable.  When that happens, I believe that the system will try to
> retransmit the messages and/or re-establish the connection
> (time_reopen), but either way, messages will accumulate.
> Is there a way to tell syslog-ng "try this destination, but if it can't
> be delivered within <time>, drop the message / skip the destination" ?

well, by setting its FIFO to a low value and making sure flow control
isn't enabled, this will happen, albeit not within a timespan, but for a
number of messages.

if the FIFO gets full, syslog-ng will start dropping messages
automatically, which you can see in the "dropped" counter of the given


More information about the syslog-ng mailing list