From fcb747c57d2b8beacade7194f99fa1de8fb0a4fb Mon Sep 17 00:00:00 2001 From: Rainer Gerhards Date: Thu, 20 May 2010 16:43:46 +0200 Subject: some doc fixes; incorrect config samples could cause confusion thanks to Anthony Edwards for pointing the problems out --- doc/rsyslog_conf_filter.html | 2 +- doc/rsyslog_conf_templates.html | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) (limited to 'doc') diff --git a/doc/rsyslog_conf_filter.html b/doc/rsyslog_conf_filter.html index 841ec9c7..63c29817 100644 --- a/doc/rsyslog_conf_filter.html +++ b/doc/rsyslog_conf_filter.html @@ -231,7 +231,7 @@ A few quick samples:

*.* /var/log/file1 # the traditional way
-if $msg contains 'error' /var/log/errlog # the expression-based way
+if $msg contains 'error' then /var/log/errlog # the expression-based way

Right now, you need to specify numerical values if you would like to diff --git a/doc/rsyslog_conf_templates.html b/doc/rsyslog_conf_templates.html index 6c68b801..baa4ce29 100644 --- a/doc/rsyslog_conf_templates.html +++ b/doc/rsyslog_conf_templates.html @@ -87,8 +87,7 @@ option. Otherwise you will become vulnerable to SQL injection.
To escape:
% = \%
\ = \\ --> '\' is used to escape (as in C)
-$template TraditionalFormat,%timegenerated% %HOSTNAME% -%syslogtag%%msg%\n"
+$template TraditionalFormat,"%timegenerated% %HOSTNAME% %syslogtag%%msg%\n"

Properties can be accessed by the property replacer (see there for details).

-- cgit