I noticed an inconsistency in the documentation on the
http://www.rsyslog.com/doc/rsyslog_conf_templates.html page and I was
not sure where to report it so I am sending it here.

The problem is in examples for FileFormat and ForwardFormat.  The
legacy templates show no space between syslogtag and
%msg:::sp-if-no-1st-sp%, but the new templates have a space.  Also,
the new ForwardFormat is missing a last msg property.  Here is my
patch to fix this assuming the legacy format correct.

--- a.txt       2014-01-21 23:17:15.000000000 -0800
+++ b.txt       2014-01-21 23:17:13.000000000 -0800
@@ -7,7 +7,6 @@
       property(name="hostname")
       constant(value=" ")
       property(name="syslogtag")
-       constant(value=" ")
       property(name="msg" spifno1stsp="on" )
       property(name="msg" droplastlf="on" )
       constant(value="\n")
@@ -29,10 +28,10 @@
       property(name="timestamp" dateFormat="rfc3339")
       constant(value=" ")
       property(name="hostname")
-       constant(value=" ")
       property(name="syslogtag" position.from="1" position.to="32")
       constant(value=" ")
       property(name="msg" spifno1stsp="on" )
+       property(name="msg")
       }

Bill
--

Bill MacAllister
Infrastructure Delivery Group, Stanford University

_______________________________________________
rsyslog mailing list
http://lists.adiscon.net/mailman/listinfo/rsyslog
http://www.rsyslog.com/professional-services/
What's up with rsyslog? Follow https://twitter.com/rgerhards
NOTE WELL: This is a PUBLIC mailing list, posts are ARCHIVED by a myriad of 
sites beyond our control. PLEASE UNSUBSCRIBE and DO NOT POST if you DON'T LIKE 
THAT.

Reply via email to