On Wed, 8 May 2013, Fajun Chen wrote:

I upgraded ubuntu rsyslog to 7.3.14 and still got the same issue.

My test procedure:
Clean log file. Set remote host IP to 127.255.255.1 (invalid IP) in rsyslog
conf. service rsyslog restart followed by logger in a loop. The disk queue
files are buffered but are limited to 96M overall. Set remote host IP to
valid IP. service rsyslog restart. I expect the queued files to be flushed
to the remote host but these files are still in the queuing directory.

This may be a silly thought, but the fact that you are changing the configuration between these two steps could be part of the problem.

I would suggest that instead of changing the config to enable/disable sending the logs that you instead keep the rsyslog config the same and set iptables rules to block and unblock the communications.

David Lang
_______________________________________________
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