summaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2012-09-20 07:43:04 +0200
committerRainer Gerhards <rgerhards@adiscon.com>2012-09-20 07:43:04 +0200
commit911e2ec374d9911804eebf4765911654610384a0 (patch)
tree4210eb970d427d0c4cedf9a3e3ac7e6e654556bd /doc
parenta85784a480304d213af33d3f3ade7d98635c85dd (diff)
downloadrsyslog-911e2ec374d9911804eebf4765911654610384a0.tar.gz
rsyslog-911e2ec374d9911804eebf4765911654610384a0.tar.bz2
rsyslog-911e2ec374d9911804eebf4765911654610384a0.zip
doc: add new functions to RainerScript function list
Diffstat (limited to 'doc')
-rw-r--r--doc/rainerscript.html5
1 files changed, 4 insertions, 1 deletions
diff --git a/doc/rainerscript.html b/doc/rainerscript.html
index 63a79040..fcc2674d 100644
--- a/doc/rainerscript.html
+++ b/doc/rainerscript.html
@@ -58,6 +58,9 @@ recommended.
variable, if it exists. Returns an empty string if it does not exist.
<li>strlen(str) - returns the length of the provided string
<li>tolower(str) - converts the provided string into lowercase
+<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
</ul>
<p>The following example can be used to build a dynamic filter based on some environment
variable:
@@ -69,7 +72,7 @@ if $msg contains getenv('TRIGGERVAR') then /path/to/errfile
<p><font size="2">This documentation is part of the
<a href="http://www.rsyslog.com/">rsyslog</a>
project.<br>
-Copyright &copy; 2008, 2009 by <a href="http://www.gerhards.net/rainer">Rainer Gerhards</a> and
+Copyright &copy; 2008-2012 by <a href="http://www.gerhards.net/rainer">Rainer Gerhards</a> and
<a href="http://www.adiscon.com/">Adiscon</a>.
Released under the GNU GPL version 3 or higher.</font></p>
</body></html>