[syslog-ng] Problems with rewrite set and template functions...
Gergely Nagy
algernon at balabit.hu
Thu Sep 5 09:58:22 CEST 2013
"Johnson, Chris (HP TippingPoint Roseville)" <chris.johnson3 at hp.com>
writes:
> The template functions that I can release are:
> Using 'ipv4-to-int' as a template and added these to
> 'modules/convertfuncs/convert-funcs.c':
Better later than never, I finally got around to these template
functions, and they're going to hit my merge-queue/3.5 branch soon.
For upper-case and lower-case, I used g_utf8_strup() and
g_utf8_strdown() instead of toupper() and tolower(), so that it works on
UTF8 chars too, not just ASCII.
I did not pick the tf_tab_to_$something functions, but implemented
$(delimit) instead, which can replace a number of delimiters within a
string with another delimiter.
So $(tab-to-comma $MESSAGE) would become $(delimit "\t" "," $MESSAGE),
and so on. I did not add shortcuts for now.
--
|8]
More information about the syslog-ng
mailing list