Skip to content

Commit 476b348

Browse files
Bill MacAllisterrgerhards
authored andcommitted
fix inconsistent template definitions
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.
1 parent cb0b70b commit 476b348

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

source/configuration/templates.rst

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,6 @@ Standard Template for Writing to Files
362362
property(name="hostname")
363363
constant(value=" ")
364364
property(name="syslogtag")
365-
constant(value=" ")
366365
property(name="msg" spifno1stsp="on" )
367366
property(name="msg" droplastlf="on" )
368367
constant(value="\n")
@@ -392,8 +391,8 @@ Standard Template for Forwarding to a Remote Host (RFC3164 mode)
392391
property(name="hostname")
393392
constant(value=" ")
394393
property(name="syslogtag" position.from="1" position.to="32")
395-
constant(value=" ")
396394
property(name="msg" spifno1stsp="on" )
395+
property(name="msg")
397396
}
398397

399398
The equivalent string template looks like this:

0 commit comments

Comments
 (0)