[syslog-ng] unix_stream socket

pat.hartemann at bluewin.ch pat.hartemann at bluewin.ch
Mon Nov 27 11:41:19 CET 2006

Hello all,

I'm configuring syslog-ng 2.0 on a RHEL ES 4 U4 system. One of the 
destination is an unix stream socket.
After the first log writen on this socket, I get the error message 

Nov 27 11:32:30 ch-syslog-1 syslog-ng[10153]: I/O error occurred 
while writing; fd='8', error='Connection refused (111)' 
Nov 27 11:32:30 ch-syslog-1 syslog-ng[10153]: Connection broken; 

I checked the socket with a thin client (perl script) and that's 
working (whitout restart socket server of course), so I assume this 
issue comes from syslog-ng, but syslog-ng works as root ... I'm 
little bit confusing ...
Hereby the the dest, template and options  configurations. 

 options {
    sync (0);
    time_reopen (10);
    log_fifo_size (1000);
    long_hostnames (off);
    use_dns (no);
    use_fqdn (no);
    create_dirs (no);
    keep_hostname (yes);

template t_test { template

destination d_test { file("/var/log/test.log" template(t_test)); 
unix-stream('/var/tmp/syslog_generic.soc' template(t_test));};


Many thx for your help


More information about the syslog-ng mailing list