]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
DOC: logs: the format directive was missing from the second log part
authorWilly Tarreau <w@1wt.eu>
Mon, 12 Nov 2018 06:56:13 +0000 (07:56 +0100)
committerWilly Tarreau <w@1wt.eu>
Mon, 12 Nov 2018 17:37:55 +0000 (18:37 +0100)
The "log" statement appears both in the global section and in listeners.
The "format" directive was only documented in the first one. Maybe we
should think about moving this definition to the log section by now.

doc/configuration.txt

index 096a1fa9e2e0cb0a895218efeb2d10970ced0702..7679998e91a725e4851984b2928b3a40eb401965 100644 (file)
@@ -5066,7 +5066,7 @@ load-server-state-from-file { global | local | none }
 
 
 log global
-log <address> [len <length>] <facility> [<level> [<minlevel>]]
+log <address> [len <length>] [format <format>] <facility> [<level> [<minlevel>]]
 no log
   Enable per-instance logging of events and traffic.
   May be used in sections :   defaults | frontend | listen | backend
@@ -5116,6 +5116,15 @@ no log
                generally fine for all standard usages. Some specific cases of
                long captures or JSON-formatted logs may require larger values.
 
+    <format> is the log format used when generating syslog messages. It may be
+             one of the following :
+
+      rfc3164   The RFC3164 syslog message format. This is the default.
+                (https://tools.ietf.org/html/rfc3164)
+
+      rfc5424   The RFC5424 syslog message format.
+                (https://tools.ietf.org/html/rfc5424)
+
     <facility> must be one of the 24 standard syslog facilities :
 
                  kern   user   mail   daemon auth   syslog lpr    news