Please also send the plugin code, as this helps to understand... Thx, Rainer
2014-10-02 2:48 GMT+02:00 Liwei Peng <[email protected]>: > Hi, > > I am writing a new output module with batching with multiple worker > threads. I am using disk-assisted fixed array queue. > > One thing I'd like to do is to uniquely identify each message sent through > the module. I created a counter in worker instance. so that each new > message in doAction() will make counter + 1. > > However, I found that there are cases (not 100% case) that 2 messages go to > the same worker thread and the counter are only increased once. > > Can you help on what's going on? > > The only diff I found is that the one msg is from queue[DA]; another is > from queue. but I don't know why this won't cause counter increase. > > See attached debug log. > > Example: the following 2 messages to the same thread > > 0704.006084403:action 1 *queue[DA]:*Reg/w0: omazuremds: pid 20121 thread > 139993705387776 tag=[1412210704:0x7f52cc004e60:1] > logstring=["syslog","6","2014-10-01T17:45:00.675677-07:00","127.0.0.1"," > [origin software=\"rsyslogd\" swVersion=\"8.4.0\" x-pid=\"19917\" > x-info=\"http:\/\/www.rsyslog.com\"] exiting on signal 15.",""] > > 0704.006770935:action 1 q*ueue:Reg/w0*: omazuremds: pid 20121 thread > 139993680209664 tag=[1412210704:0x7f52cc004e60:1] > logstring=["syslog","6","2014-10-01T17:45:04.005700-07:00","127.0.0.1"," > [origin software=\"rsyslogd\" swVersion=\"8.4.0\" x-pid=\"20121\" > x-info=\"http:\/\/www.rsyslog.com\"] start",""] > > _______________________________________________ > 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.

