diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2012-09-20 11:26:24 +0200 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2012-09-20 11:26:24 +0200 |
commit | a5dcf8cdb7db791d3f43e8cc4f793380739807c8 (patch) | |
tree | e8dbe37ad6c2dcc8d44b5bc07bdce9da0a57a082 /doc/rainerscript.html | |
parent | dc40e3b43fa92d06ba03c4bb434f885db0ed4352 (diff) | |
download | rsyslog-a5dcf8cdb7db791d3f43e8cc4f793380739807c8.tar.gz rsyslog-a5dcf8cdb7db791d3f43e8cc4f793380739807c8.tar.bz2 rsyslog-a5dcf8cdb7db791d3f43e8cc4f793380739807c8.zip |
Implement RainerScript field() function
Diffstat (limited to 'doc/rainerscript.html')
-rw-r--r-- | doc/rainerscript.html | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/doc/rainerscript.html b/doc/rainerscript.html index fcc2674d..df31db2a 100644 --- a/doc/rainerscript.html +++ b/doc/rainerscript.html @@ -61,6 +61,11 @@ variable, if it exists. Returns an empty string if it does not exist. <li>cstr(expr) - converts expr to a string value <li>cnum(expr) - converts expr to a number (integer) <li>re_match(expr, re) - returns 1, if expr matches re, 0 otherwise +<li>field(str, delim, matchnbr) - returns a field-based substring. str is the string +to search, delim is the numerical ascii value of the field delimiter (so that +non-printable characters can by specified) and matchnbr is the match to search +for (the first match starts at 1). This works similar as the field based +property-replacer option. </ul> <p>The following example can be used to build a dynamic filter based on some environment variable: |