[syslog-ng] subst() pcre escape sequences

Patrick H. syslogng at feystorm.net
Thu Mar 11 20:36:04 CET 2010


\Q is quote in pcre, not what I need to do. Plus its not evaluating the 
escapes at all. I'm guessing that syslog-ng isnt passing the second 
argument of the subst() to pcre, but is doing to replacement itself 
(havent dug through the code).

Sent: Thursday, March 11, 2010 12:31:08 PM
From: Paul Robert Marino <prmarino1 at gmail.com>
To: Syslog-ng users' and developers' mailing list 
<syslog-ng at lists.balabit.hu>
Subject: Re: [syslog-ng] subst() pcre escape sequences
> try a \Q instead of \L
>
> On 3/10/2010 6:47 PM, Patrick H. wrote:
>> Ok, I'm trying to lowercase a certain macro with a pcre rewrite rule. 
>> Unfortunately it doesnt seem to be observing pcre escape sequences.
>> subst('^(.+)$','\L$1\E',value('FROM') flags('store-matches') 
>> type('pcre')); (the FROM macro is created from the named match of an 
>> earlier pcre filter()
>> It ends up just putting a literal '\L' and '\E' at the start and end 
>> of the string. Is this a bug, or am I doing something wrong, or is 
>> there another way to do this?
>>
>>
>> ______________________________________________________________________________
>> Member info: https://lists.balabit.hu/mailman/listinfo/syslog-ng
>> Documentation: http://www.balabit.com/support/documentation/?product=syslog-ng
>> FAQ: http://www.campin.net/syslog-ng/faq.html
>>
>>   
>
> ------------------------------------------------------------------------
>
> ______________________________________________________________________________
> Member info: https://lists.balabit.hu/mailman/listinfo/syslog-ng
> Documentation: http://www.balabit.com/support/documentation/?product=syslog-ng
> FAQ: http://www.campin.net/syslog-ng/faq.html
>
>   
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.balabit.hu/pipermail/syslog-ng/attachments/20100311/d9003d34/attachment.htm 


More information about the syslog-ng mailing list