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@test /root]# syslog-ng parse error at 199 Parse error reading configuration file, exiting. (line 199)
[root@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