22.10.2013 14:35, Rainer Gerhards:
Summing this up, I conclude:

* global vars, as they are currently implemented, need to go away
* they can probably be replaced by an enhanced mmcount (mmglobal)

Such an mmglobal would unite the functionality of mmcount, the proposed
mmsequence and something that just stores some properties for later reuse.
The important thing about it is that it will always store the current
global value to a *message variable*. Such a module will be able to handle
all the use cases so far described.

In doc, we can say that global variables have been removed as they do not
work well, and have been replaced by mmglobal (or whatever we call it).

How does that sound?


For me, it sounds familiar. I've already considered using current mmsequence as a replacement for (integer) globals. It is tricky and perverted, but possible. You can get current value from it using "step=0", you can set it to a value using from=Value to=Value step=BigNumber.

Mmcount is different, in that it is dynamically allocates counters based on message content. It is a custom task.


--
Pavel Levshin


_______________________________________________
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