[syslog-ng] syslog-ng 1.5.17 and tcp-keep-alive not working

Balazs Scheidler bazsi at balabit.hu
Thu Jun 16 11:28:39 CEST 2005


On Wed, 2005-06-15 at 17:32 +0200, Olaf Hoyer wrote:
> Hallo!
> 

> So now I wanted to activate tcp keepalive on the client, in the hope, 
> that whenever the syslog server closed the connection, that the client 
> can reopen it upon new data arriving, what it is not doing in the basic 
> config:

tcp-keep-alive enables the SO_KEEPALIVE socket option, thus sends TCP
keepalive packets form time to time, and indicates a broken connection
when those packets are not properly acked. So it basically detects IP
connectivity without actually sending messages.

> [root at test /root]# syslog-ng
> parse error at 199
> Parse error reading configuration file, exiting. (line 199)
> 
> [root at test /root]# head -199 /etc/syslog-ng/syslog-ng.conf |tail -1
> destination syslog_server { tcp("10.0.0.1" port(8514) 
> tcp-keep-alive(yes)); };

tcp-keep-alive was added in syslog-ng 1.6.3

-- 
Bazsi



More information about the syslog-ng mailing list