summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2012-11-14 11:07:35 +0100
committerRainer Gerhards <rgerhards@adiscon.com>2012-11-14 11:07:35 +0100
commit98d4437d0e5950118e5dd09fda0bf45e85512bfd (patch)
tree52530057883628efd49802118ee2f70f869a95ff
parent9f3657ac8e8d9a69a435b94e31a9a0e05c0e0999 (diff)
downloadrsyslog-98d4437d0e5950118e5dd09fda0bf45e85512bfd.tar.gz
rsyslog-98d4437d0e5950118e5dd09fda0bf45e85512bfd.tar.bz2
rsyslog-98d4437d0e5950118e5dd09fda0bf45e85512bfd.zip
doc: describe leading space problem with "startswith" comparison
-rw-r--r--ChangeLog1
-rw-r--r--doc/rsyslog_conf_filter.html11
2 files changed, 9 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index d794bdb2..cf633a6d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,6 @@
----------------------------------------------------------------------------
Version 7.2.2 [v7-stable] 2012-10-??
+- doc improvements
- enabled to build without libuuid, at loss of uuid functionality
this enables smoother builds on older systems that do not support
libuuid. Loss of functionality should usually not matter too much as
diff --git a/doc/rsyslog_conf_filter.html b/doc/rsyslog_conf_filter.html
index 3efa3967..a795193f 100644
--- a/doc/rsyslog_conf_filter.html
+++ b/doc/rsyslog_conf_filter.html
@@ -197,9 +197,14 @@ of the property value. For example, if you search for "val" with
<p>it will be a match if msg contains "values are in this
message" but it won't match if the msg contains "There are values in
this message" (in the later case, contains would match). Please note
-that "startswith" is by far faster than regular expressions. So even
-once they are implemented, it can make very much sense
-(performance-wise) to use "startswith".</p>
+that "startswith" is by far faster than regular expressions. So
+it makes very much sense (performance-wise) to use "startswith".</p>
+<p>Note: when processing syslog messages, please note that $msg usually
+starts with a space. The reason for this is RFC3164. Please read the
+<a href="http://www.rsyslog.com/log-normalization-and-the-leading-space/">detail
+description</a> of what that means to you. In short, you need to make sure
+that you include the first space if you use "startswith", otherwise you will
+not get matches.
</td>
</tr>
<tr>