6 Oct
2010
6 Oct
'10
3:38 p.m.
Thanks. I take this as a compliment. :) In fact I do like template functions a lot. If only I had a scripting engine embedded into syslog-ng to make it extending really easy.
My vote would be for embedding a Perl interpreter, though Lua seems to be the more fashionable embed these days.
the foo and bar parts are what the $(if) constructs expands to if the result of the filter evaluation is true / false respectively.
Can you give an example? I'm not on the same page with you.