From 911e2ec374d9911804eebf4765911654610384a0 Mon Sep 17 00:00:00 2001 From: Rainer Gerhards Date: Thu, 20 Sep 2012 07:43:04 +0200 Subject: doc: add new functions to RainerScript function list --- doc/rainerscript.html | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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.
  • strlen(str) - returns the length of the provided string
  • tolower(str) - converts the provided string into lowercase +
  • cstr(expr) - converts expr to a string value +
  • cnum(expr) - converts expr to a number (integer) +
  • re_match(expr, re) - returns 1, if expr matches re, 0 otherwise

    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

    This documentation is part of the rsyslog project.
    -Copyright © 2008, 2009 by Rainer Gerhards and +Copyright © 2008-2012 by Rainer Gerhards and Adiscon. Released under the GNU GPL version 3 or higher.

    -- cgit v1.2.3