2016-02-23 0:08 GMT+01:00 Kane Kim <[email protected]>:

> I return RS_RET_SUSPENDED from EndTransaction and expect rsyslog to retry
> failed messages. My configuration looks like following:
>
> queue.spoolDirectory="/var/spool/rsyslog" queue.filename="some_filename"
> queue.type="Disk" queue.maxdiskspace="1G" queue.saveonshutdown="on"
> action.resumeRetryCount="-1" action.reportSuspensionContinuation="on"
> action.resumeInterval="1"
>
> After logging a line:
>
> 6130.843876518:action 0 queue:Reg/w0: Action 0 transitioned to state: rdy
> 6130.844112940:action 0 queue:Reg/w0: Action 0 transitioned to state: itx
> 6130.844131796:action 0 queue:Reg/w0: Action 0 transitioned to state: rtry
> 6130.844137106:action 0 queue:Reg/w0: actionCommit, in retry loop, iRet
> -2007
> 6130.844142731:action 0 queue:Reg/w0: regular consumer finished,
> iret=-2007, szlog 0 sz phys 1
> 6130.844149164:action 0 queue:Reg/w0: DeleteProcessedBatch: we deleted
> 1 objects and enqueued 0 objects
> 6130.844154698:action 0 queue:Reg/w0: doDeleteBatch: delete batch from
> store, new sizes: log 0, phys 0
> 6130.844160252:action 0 queue:Reg/w0: regular consumer finished,
> iret=4, szlog 0 sz phys 0
> 6130.844165414:action 0 queue:Reg/w0: action 0 queue:Reg/w0: worker
> IDLE, waiting for work.
>
> That message is not resent by rsyslog after failure. Is there special
> configuration?
>
> I've found TODO here:
> https://github.com/rsyslog/rsyslog/blob/master/action.c#L1236
> That says "For the time being, I do NOT implement all of this (not even
> retry!)". I Wonder if retry functionality is not finished in rsyslog?
>
>
That comment is no longer really true, as many things have been changed on
the upper level. However, what is true is that we should write an error
file. This actually slipped through. It is right that we cannot do a retry
if we used the batch commit feature, because we do no longer have all the
data in place. This was a tradeoff we had to make when moving to the v8
engine. You can configure a batch size of 1, though, if you need to have
retry under all cases.

Rainer

> Thanks!
> _______________________________________________
> 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.
>
_______________________________________________
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