just so that you know an answer is coming up. I, too, need to look up the details, but it was a too-busy day to do so yet :-( IIRC the engine cannot halt or resubmit processing because all messages have already been processed and are no longer available in native form. So the plugin must handle this as part of retry processing. HOWEVER, I am not 100% sure.
Rainer 2014-09-20 5:23 GMT+02:00 Liwei Peng <[email protected]>: > Hi, > > I am writing a new output module. I am using batching and transaction. > Because many of my processing is done in EndTransaction, what'll happen to > the batch/transaction if endTransaction returns RS_RET_SUSPENDED? Will the > same batch of messages go to Resume then go to > BeginTranction/DoAction/EndTransaction? > > The doc in http://www.rsyslog.com/doc/dev_oplugins.html talks about > RS_RET_SUSPENDED in BeginTransaction/Doaction. But it is not clear to me > what'll happen if it occurs in EndTransaction. > > the following is copied from the above link: > > However, if either beginTransaction() or doAction() return back an error > state (including RS_RET_SUSPENDED), then the transaction is considered > aborted. In result, the remaining calls in this cycle (e.g. > endTransaction()) > are never made and a new cycle (starting with beginTransaction() is begun > when processing resumes. > > Thanks, > > Liwei > _______________________________________________ > 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.

