[syslog-ng] Re-Starting syslog servicesio.c: bind_inet_socket() bind failed

abhay singh abhay.asingh at gmail.com
Thu Apr 15 06:45:07 CEST 2010


Hi,

No other services are runnign at that port...
when i give just
         udp();
instead of
         udp(ip("xxx.xxx.xxx.xxx") port(514));

it works, means i can restart syslog service///



On Wed, Apr 14, 2010 at 3:57 PM, Zoltán Pallagi <pzolee at balabit.hu> wrote:

> Hi,
>
> Another application is listening on the udp 514 port, that's why syslog-ng
> cannot bind on it.
> You should stop this application before starting syslog-ng.
>
> typically, it is the rshd on the most platforms. You can check it with lsof
> (lsof -i udp:514) or netstat (for more details see my blog:
> http://pzolee.blogs.balabit.com/2010/03/troubleshooting-on-linux-best-practices.html
> )
>
> abhay singh wrote:
>
>   Hi All
> I am configuring syslog-ng confile to receive logs from different m/c of
> network.
> I have added these in my syslog-ng.conf file
> source s_external {
>         udp(ip("xxx.xxx.xxx.xxx") port(514));
> };
> destination s_external { file("/mydir/syslogs/$HOST_syslog.log" \
>     owner(user) group(group) perm(0600) dir_perm(0700) create_dirs(yes));
> };
>
> log { source(s_external); destination(s_external); };
>
> Also made entry in iptable
> iptables -A INPUT -p udp -i eth1 -s xxx.xxx.xxx.xxx -d yyy.yyy.yyy.yyy
> --dport 514 -j ACCEPT
>
> When i restart syslog service it gives this error
>  /etc/init.d/syslog restart
> Shutting down syslog services                                         done
> Re-Starting syslog servicesio.c: bind_inet_socket() bind failed
> xxx.xxx.xxx.xxx:514 Cannot assign requested address
> Error initializing configuration, exiting.
> \\startproc:  exit status of parent of /sbin/syslog-ng: 1        failed
>
>
> What is wrong in this?
> --
> Regards..
> Abhay Singh..
>
> ------------------------------
>
> ______________________________________________________________________________
> Member info: https://lists.balabit.hu/mailman/listinfo/syslog-ng
> Documentation: http://www.balabit.com/support/documentation/?product=syslog-ng
> FAQ: http://www.campin.net/syslog-ng/faq.html
>
>
>
> --
> pzolee
>
>


-- 
Regards..
Abhay Singh..
91-98804-55587
Sr. Software Engineer.
Robust Designs India Pvt Ltd.
Bangalore
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.balabit.hu/pipermail/syslog-ng/attachments/20100415/7b236735/attachment.htm 


More information about the syslog-ng mailing list