> On Sun, 9 Mar 2014, Tanky Woo wrote:
> 
> > rsyslog version is 5.8
> >
> > I found rsyslogd will be blocked, if the remote server domain name can’t 
> > resolve because of timeout.
> >
> > I configured the rsyslogd to send log to remote by udp:
> >
> > *.* @xxx.com:514
> >
> > now the name server has problem and the dns request will timeout(only 
> > timeout will cause this problem). the cause the rsyslogd can’t work right.
> >
> > I use logger to send log, and no log will write in /var/log/syslog。
> >
> > I just add the domain in /etc/hosts to solve this problem. But is there any 
> > other way, or is it a bug in v5?
> 
> The message where the timeout happens will eventually get into the log, but 
> the 
> problem is that while it is stalled waiting for the timeout, other UDP 
> messages 
> will end up getting dropped.
> 
> you can disable name resolution entirely by starting rsyslog with the -x flag 
> (it won't even use /etc/hosts at that point)
> 
> This is a problem with basically every syslog daemon from the beginning. 
> Rsyslog 
> 7+ has a DNS cache, but I'm not sure that it will cach failures, so you may 
> still have a problem (I think it also changes the point at which the DNS 
> resolution happens, so it may receive message without a problem, but then get 
> stuck writing them out)
> 
> David Lang
I have already setted the `-x` options:
RSYSLOGD_OPTIONS="-c5 -Q -x”
and it will still blocked.
and the manual say:
-x     Disable DNS for remote messages.
if I disable it, it will not do name resolution, how can the rsyslog to use 
xxx.com in configuration?
then:
> The message where the timeout happens will eventually get into the log, but 
> the problem is that while it is stalled waiting for the timeout, other UDP 
> messages will end up getting dropped.
If it is stalled waiting for the timeout, and the udp messages will dropped, 
why rsyslog won’t write message to file, I just move that statements to the end 
of the configuration.

_______________________________________________
rsyslog mailing list
http://lists.adiscon.net/mailman/listinfo/rsyslog
http://www.rsyslog.com/professional-services/
What's up with rsyslog? Follow https://twitter.com/rgerhards
NOTE WELL: This is a PUBLIC mailing list, posts are ARCHIVED by a myriad of 
sites beyond our control. PLEASE UNSUBSCRIBE and DO NOT POST if you DON'T LIKE 
THAT.

Reply via email to