[syslog-ng] Syntax error when using the tcp-keep-alive() option

Balazs Scheidler bazsi at balabit.hu
Fri Dec 22 11:09:27 CET 2006


On Thu, 2006-12-21 at 23:13 +0000, Jonathan Turner wrote:
> Hi there,
> 
> I'm working on using syslog-ng within our environment mainly due to
> the ability to use syslog with tcp. I will be traversing firewalls and
> therefore the tcp-keep-alive() option is vital for me. However when I
> try to turn this on in my tcp source it gives me a syntax error. I
> have pasted in the relevant part of the config below. I'm pretty sure
> I have it right. The strange thing is that when I search the source
> code for the option I can't find anything as if it has been removed
> from version 2.0 (the version I'm using).
> 
> Does anyone know what may have happened to the tcp-keep-alive option
> in version 2.0 and, if I'm right and it isn't there, what are the
> options in syslog-ng that I could use to prevent the sessions timing
> out on firewalls? 
> 
> source testsrc {
>  tcp( ip(0.0.0.0) port(5514)
>  max-connections(300)
>  keep-alive(yes)
>  tcp-keep-alive(yes)
>  );
> };

As syslog-ng 2.0 was forked earlier than tcp-keep-alive option was
added, this missing keyword was missed.

I've now committed an implementation of a so_keepalive option (renamed
for consistency), but an obsolete tcp-keep-alive() keyword was also
added for compatibility.

It should be available in tomorrow's snapshot.

-- 
Bazsi



More information about the syslog-ng mailing list