[syslog-ng] syslog-ng to syslog not working

Gerardo Amaya joseg at galileo.edu
Mon Jul 25 23:27:57 CEST 2005


Hello all. I have a syslog-ng server and I want to forward some messages 
to a Syslogd Server. I don't want stunnel or anything special, just send 
syslog-ng messages via udp(514), but right now I get the following error:

Jul 22 20:10:06 s_localhost at RHTSRV syslog-ng[31406]: io.c: do_write: 
write() fai
led (errno 111), Connection refused
Jul 22 20:10:06 s_localhost at RHTSRV syslog-ng[31406]: Connection broken 
to AF_INE
T(192.168.4.252:514), reopening in 60 seconds
Jul 22 20:11:07 s_localhost at RHTSRV syslog-ng[31406]: io.c: do_write: 
write() fai
led (errno 111), Connection refused
Jul 22 20:11:07 s_localhost at RHTSRV syslog-ng[31406]: Connection broken 
to AF_INE
T(192.168.4.252:514), reopening in 60 seconds
Jul 22 20:12:07 s_localhost at RHTSRV syslog-ng[31406]: io.c: do_write: 
write() fai
led (errno 111), Connection refused
Jul 22 20:12:07 s_localhost at RHTSRV syslog-ng[31406]: Connection broken 
to AF_INE
T(192.168.4.252:514), reopening in 60 seconds

This is the definition in my syslog-ng.conf file

source s_localhost {

           pipe ("/proc/kmsg" log_prefix("kernel: "));

           unix-stream ("/dev/log");

           internal();

};


destination d_TestServer {
           udp ("192.168.4.252" port(514));
};

log { source(s_localhost);
       destination(d_localhost);
       destination(d_TestServer);
};


Can someone help me to find the source of the problem?

Thanks in advance

Gerardo Amaya


More information about the syslog-ng mailing list