[syslog-ng] How to send tracebacks through syslog-ng?

Jakub Jankowski shasta at toxcorp.com
Sat Sep 24 09:31:34 CEST 2011


On 2011-09-24, Luis Pugoy wrote:

> rewrite r_rewrite_subst {  subst("a*", "?", value("MESSAGE") type("pcre")
> flags("utf8" "global"));  };
>
> I thought that it would replace 0 or more occurrences of 'a' with a question
> mark. However, when the input is 'a', the output becomes 'a?'. It just
> appends a question mark at the end. 'aa' also becomes 'aa?'. What is weirder
> still is that even if the input does not contain 'a', the question mark is
> still appended. So '1' becomes '1?'.

Well, does "1" match /a*/ ? :)
It doesn't make any difference if that's /a*/, /b*/ or /.*/ - this kind of 
regexp matches everything, even an empty string.

HTH

-- 
Jakub Jankowski|shasta at toxcorp.com|http://toxcorp.com/
GPG: FCBF F03D 9ADB B768 8B92 BB52 0341 9037 A875 942D


More information about the syslog-ng mailing list