On Wed, 8 May 2013, Fajun Chen wrote:

iptables block setting didn't work for some reason.

what do the iptables rules on that system look like?

without seeing them, my guess is that there is a rule already there that allows packets related to a known connection that are getting applied (and therefor accepting the packets) before the deny rule you are trying to put in place takes effect.

As a alternative testing, I stopped rsylogd on the remote server and the logs were queued on the client as expected. I started rsyslog on the remote server once the disk queue on the client is filled up. I did see the queue files were flushed to the remote server once rsyslog is back to service. So this seems to be related to rsyslog configuration change.

My guess (without knowing the code well) is that the queued messages are somehow queued for the specific destination (IIRC you had this queue setup as an action queue, not as the main queue, you posted your config, but I have already deleted those messages). I'd be curious to see if you have the same problem spilling the main queue to disk.

On the other hand, as I noted in the first report, when I changed rsyslog
configuration before disk space limit is reached, the queued files were
flushed to the remote server without issues.

very interesting, and probably a bug.

We need the initial startup logs to be queued before remote logging server
is set. Switching from invalid IP to valid IP in rsyslog configuration was
chosen to meet this requirement.

Is there any chance of re-ordering the startup sequence to get the config first, then start rsyslog, then start everything else? kernel messages will get queued for quite a while, so they shouldn't be an issue. The only issue would be any other applications that need to write logs very early on.

David Lang

Thanks,


On Wed, May 8, 2013 at 11:56 AM, David Lang <[email protected]> wrote:

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