[syslog-ng] [PATCH (3.4)] value-pairs: Implement key transformation functions.

Gergely Nagy algernon at balabit.hu
Fri Jun 10 13:07:27 CEST 2011


Gergely Nagy <algernon at balabit.hu> writes:

> This is the implementation of the rekey() mechanism, a way to
> transform the keys of a value-pairs() set.
[..snip..]

I'm submitting this because after a few nights of staring at the code,
I'm reasonably happy with it, and it has enough features for a review.

While I talked about a regexp() transformation function earlier, I
decided against it for now, until a need for it arises. PCRE does not
have built-in replace functionality, so I'd have to code that myself,
which seemed like too much effort for very little gain.

The three functions available now are enough for my needs, I can do
everything I want with them for now. We can always add more, reasonably
easily, if there's demand.

The code is available on the integration/value-pairs/rekey branch of my
git tree[1] aswell, and also on value-pairs/rekey - the former is a
rebase on top of master, pulling all the commits into one big, clean
one, while the latter is where development happened, with all the silly
design mistakes I made during the process.

[1]: git://git.balabit.hu/algernon/syslog-ng-3.4.git

-- 
|8]


More information about the syslog-ng mailing list