summaryrefslogtreecommitdiffstats
path: root/doc/property_replacer.html
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2012-04-26 15:50:49 +0200
committerRainer Gerhards <rgerhards@adiscon.com>2012-04-26 15:50:49 +0200
commit5624012710ea75acfd892903f05a6df69a51be39 (patch)
tree4a0efbb5c4bbf7a304b2932a52eb9cfc30d98ee3 /doc/property_replacer.html
parent9b06a4c26422b0a8727e1b3c6cc7141226186105 (diff)
downloadrsyslog-5624012710ea75acfd892903f05a6df69a51be39.tar.gz
rsyslog-5624012710ea75acfd892903f05a6df69a51be39.tar.xz
rsyslog-5624012710ea75acfd892903f05a6df69a51be39.zip
added capability to specify substrings for field extraction mode
Diffstat (limited to 'doc/property_replacer.html')
-rw-r--r--doc/property_replacer.html9
1 files changed, 9 insertions, 0 deletions
diff --git a/doc/property_replacer.html b/doc/property_replacer.html
index 5ee1d096..4c92bf4c 100644
--- a/doc/property_replacer.html
+++ b/doc/property_replacer.html
@@ -304,6 +304,15 @@ fields in the property is requested. The field number must be placed in
the "ToChar" parameter. An example where the 3rd field (delimited by
TAB) from the msg property is extracted is as follows: "%msg:F:3%". The
same example with semicolon as delimiter is "%msg:F,59:3%".</p>
+<p>The use of fields does not permit to select substrings, what is rather
+unfortunate. To solve this issue, starting with 6.3.9, fromPos and toPos
+can be specified for strings as well. However, the syntax is quite ugly, but
+it was the only way to integrate this functonality into the already-existing
+system. To do so, use ",fromPos" and ",toPos" during field extraction.
+Let's assume you want to extract the substring from position 5 to 9 in the previous
+example. Then, the syntax is as follows: "%msg:F,59,5:3,9%". As you can see,
+"F,59" means field-mode, with semicolon delimiter and ",5" means starting
+at position 5. Then "3,9" means field 3 and string extraction to position 9.
<p>Please note that the special characters "F" and "R" are
case-sensitive. Only upper case works, lower case will return an error.
There are no white spaces permitted inside the sequence (that will lead