[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; 
time_reopen='10' 

-------------------------------------------------------------------------------------------------------
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);
    flush_lines(1);
    flush_timeout(5000);
};

template t_test { template
("$R_STAMP;$S_STAMP;$HOST;$FACILITY;$LEVEL;$PROGRAM;$MSGONLY\n"); };

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
Ciao 

patrick


More information about the syslog-ng mailing list