On Tue, Sep 24, 2013 at 8:00 PM, David Lang <[email protected]> wrote: > Rainer, is there an example of a simple module being converted to the new > config syntax? > > I'm thinking that it would be useful to start collecting examples of > commits that do fairly simple things as documentation for programmers > trying to create/improve modules > > a few of simple ones to start off with: > > 1. add a config parameter (I think I can dig this up from the imfile > changes where we implemented the multi-line mode) >
I'll see if I can dig out something. But usually, there is more in a single commit - because new params get added for new functionality and so this is always intermixed. > > 2. change a new style parameter > > I'm looking at omruleset and it looks like it may not support the new > config format yet, but I'm not sure. If it does, I'd like to understand how > it does, if not, it looks like it would be a tiny change and a good example > case > Actually not, because this is a deprecated module, carried within the source tree just for backward compatibility. The "call" statement can do anything omruleset does, but in a much higher performance way. But I think ommail is also missing the new style config. I'll check and, if so, it would make sense to convert it. When doing so, I could do baby-step commits that show things being done individually. > > 3. how to manipulate the raw message buffer in parsing modules (I have > this archived in e-mail, I'll dig it up) > > That's somewhat tricky at the moment and not properly encapsulated. Important question: do you really mean rawmsg or just the msg part of the message (rawmsg is even tricker due to the low-level optimizations made). Rainer > David Lang > ______________________________**_________________ > 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.

