I think you should use the following:
udp(ip(0.0.0.0) port(514));
 
instead of udp();
 
Xiaodong


From: syslog-ng-admin@lists.balabit.hu [mailto:syslog-ng-admin@lists.balabit.hu] On Behalf Of wei
Sent: Tuesday, December 07, 2004 3:29 AM
To: syslog-ng@lists.balabit.hu
Subject: [syslog-ng]Can't receive syslog by UDP protocol

Greeting!

 

I have set up my syslog-ng environment by the default syslog-ng.conf file. By the linux default logger command, I can generate syslog to file.

But when I use a syslog client send out syslog to the syslog-ng server, I can’t receive the log by UDP protocol. But I can get TCP protocol syslog. Could anyone tell me why?

 

Thanks!

 

My system is RedHat 9.0. The syslog client is Kiwi Syslog Gen in windows. The following is part of my syslog.conf file:

 

source src {

         pipe("/proc/kmsg");

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

         internal();

         udp();

         tcp(port(5140) keep-alive(yes));

};

 

log {

         source(src);

         destination(file);

};