Hello, I don't know which distro you are using but here is a points you should consider :
- if you are using an Rhel or a Centos distro (v6 branch), then I've noticed there is a bug between SeLinux and $InputFile queue (which have bad influence on queue flushing process). Restart your test with SeLinux enabled : your queue should be flushed (yes I know it sounds a little bit weird, but all worked fine with SeLinux enabled and I've experienced this problem on different platforms). Please let me know if this operation had resolved your issue. I've tried to warn RedHat about that but they'd failed to reproduce the bug. See you. Sent from my Google Nexus 10. Le 24 mai 2013 10:53, "Roberto Giordani" <[email protected]> a écrit : > Hello, > I need to know how to flush messages cached on disk on rsyslog client when > Centralized Rsyslog server was down for short period. > I use a tcp connection not RELP. > > This is my configuration on client > > $ModLoad imfile > > $InputFileName /appl/logs/test1.log > $InputFileTag test1 > $InputFileStateFile file1 > $InputFileSeverity debug > $InputFileFacility local6 > $InputRunFileMonitor > $InputFilePersistStateInterval 1000 > > $WorkDirectory /var/lib/rsyslog > $ActionQueueFileName fwdRule1 > $ActionQueueMaxDiskSpace 1g > $ActionQueueSaveOnShutdown on > $ActionQueueType Disk > $ActionResumeRetryCount -1 > $ActionQueueTimeoutEnqueue 1 > $**ActionSendResendLastMsgOnRecon**nect on > > local6.debug @@10.10.1.10:10514 > > I see the /var/lib/rsyslog/fwdRule1.**00000053 that contains the msg > recieved from local6.debug, but if I stop the Centralized Rsyslog server > 10.10.1.10 for 5 minutes, on restart the queue on client was not flushed to > it. > > Could someone please indicate me the flow to reach the goal? > > Thanks. > > ______________________________**_________________ > rsyslog mailing list > http://lists.adiscon.net/**mailman/listinfo/rsyslog<http://lists.adiscon.net/mailman/listinfo/rsyslog> > http://www.rsyslog.com/**professional-services/<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. > _______________________________________________ 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.

