Not able to set source IP in syslog-ng.conf.
Hi All, I have set the source IP to client address. This is at syslog-ng.conf file at server On spawning the syslog-ng following error is seen . Could you please help me on this [root@localhost cert.d]# /sbin/syslog-ng [2016-03-01T10:27:06.128929] Error binding socket; addr='AF_INET(10.135.83.104:514)', error='Cannot assign requested address (99)' [2016-03-01T10:27:06.128983] Error initializing message pipeline; 10.135.83.104 is reachable from server My conf file ------------------ @version:3.6 @include "scl.conf" source s_local { internal(); }; source d_source { syslog(ip("10.135.83.104") port(514) transport("udp") ); }; destination d_local { file("/var/log/messagesgiri"); }; log { source(s_local); source(d_source); destination(d_local); }; Regards, Girish
Hi Girish, On Tue, Mar 01, 2016 at 03:36:34PM +0000, Girish Kumar wrote:
[2016-03-01T10:27:06.128929] Error binding socket; addr='AF_INET(10.135.83.104:514)', error='Cannot assign requested address (99)' [2016-03-01T10:27:06.128983] Error initializing message pipeline;
You're trying to bind a foreign address. What you probably want is: source d_source { syslog("0.0.0.0" … } or the local IP on the interface from where 10.135.83.104 is reachable
Thank you. Regards, Girish -----Original Message----- From: syslog-ng-bounces@lists.balabit.hu [mailto:syslog-ng-bounces@lists.balabit.hu] On Behalf Of Fabien Wernli Sent: Tuesday, March 01, 2016 9:12 PM To: syslog-ng@lists.balabit.hu Subject: Re: [syslog-ng] Not able to set source IP in syslog-ng.conf. Hi Girish, On Tue, Mar 01, 2016 at 03:36:34PM +0000, Girish Kumar wrote:
[2016-03-01T10:27:06.128929] Error binding socket; addr='AF_INET(10.135.83.104:514)', error='Cannot assign requested address (99)' [2016-03-01T10:27:06.128983] Error initializing message pipeline;
You're trying to bind a foreign address. What you probably want is: source d_source { syslog("0.0.0.0" … } or the local IP on the interface from where 10.135.83.104 is reachable ______________________________________________________________________________ Member info: https://lists.balabit.hu/mailman/listinfo/syslog-ng Documentation: http://www.balabit.com/support/documentation/?product=syslog-ng FAQ: http://www.balabit.com/wiki/syslog-ng-faq
participants (2)
-
Fabien Wernli
-
Girish Kumar