From 3eb19c02d792c8511ab9e9c9087093ccc872c304 Mon Sep 17 00:00:00 2001 From: Rainer Gerhards Date: Tue, 19 Dec 2006 13:20:23 +0000 Subject: preparing doc for 1.13.0 release --- doc/property_replacer.html | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'doc/property_replacer.html') diff --git a/doc/property_replacer.html b/doc/property_replacer.html index 4f45ef84..8a7164c5 100644 --- a/doc/property_replacer.html +++ b/doc/property_replacer.html @@ -49,7 +49,10 @@ the string that should be copied. Offset counting starts at 1, so if you need to obtain the first 2 characters of the message text, you can use this syntax: "%msg:1:2%". If you do not whish to specify from and to, but you want to specify options, you still need to include the colons. For example, if you would like to -convert the full message text to lower case, use "%msg:::lowercase%".

+convert the full message text to lower case, use "%msg:::lowercase%". +If you would like to extract from a position until the end of the string, you +can place a dollar-sign ("$") in toChar (e.g. %msg:10:$%, which will extract +from position 10 to the end of the string).

There is also support for regular expressions. To use them, you need to place a "R" into FromChar. This tells rsyslog that a regular expression instead of position-based extraction is desired. The actual regular expression must then -- cgit