From 474cbcf842ca95c93802840847603b5098864fde Mon Sep 17 00:00:00 2001 From: Willy Tarreau Date: Fri, 24 May 2024 15:10:10 +0200 Subject: [PATCH] DOC: config: fix incorrect section reference about custom log format Since 2.5 with commit 98b930d043 ("MINOR: ssl: Define a default https log format"), some log-format sections were shifted a bit without having been renumberred, causing 8.2.4 to be referenced as the custom log format while it's in fact 8.2.6. This patch fixes the affected locations. In addition two places mentioned 8.2.6 instead of 8.2.5 for the error log format. This can be backported to 2.6. --- doc/configuration.txt | 35 ++++++++++++++++++----------------- 1 file changed, 18 insertions(+), 17 deletions(-) diff --git a/doc/configuration.txt b/doc/configuration.txt index fa0041f86..f97069ed5 100644 --- a/doc/configuration.txt +++ b/doc/configuration.txt @@ -2326,7 +2326,7 @@ set-var-fmt are only those using internal data, typically 'int(value)' or 'str(value)'. It is possible to reference previously allocated variables as well. These variables will then be readable (and modifiable) from the regular rule sets. - Please see section 8.2.4 for details on the log-format syntax. + Please see section 8.2.6 for details on the custom log-format syntax. Example: global @@ -6838,8 +6838,8 @@ error-log-format connection errors described in section 8.2.5. If the directive is used in a defaults section, all subsequent frontends will - use the same log format. Please see section 8.2.4 which covers the log format - string in depth. + use the same log format. Please see section 8.2.6 which covers the custom log + format string in depth. "error-log-format" directive overrides previous "error-log-format" directives. @@ -7633,7 +7633,7 @@ http-check set-var-fmt([,...]) Is a sample-fetch expression potentially followed by converters. This is the value expressed using log-format rules (see Custom - Log Format in section 8.2.4). + Log Format in section 8.2.6). Examples : http-check set-var(check.port) int(1234) @@ -8350,8 +8350,9 @@ log-format This directive specifies the log format string that will be used for all logs resulting from traffic passing through the frontend using this line. If the directive is used in a defaults section, all subsequent frontends will use - the same log format. Please see section 8.2.4 which covers the log format - string in depth. + the same log format. Please see section 8.2.6 which covers the custom log + format string in depth. + A specific log-format used only in case of connection error can also be defined, see the "error-log-format" option. @@ -8369,7 +8370,7 @@ log-format-sd This directive specifies the RFC5424 structured-data log format string that will be used for all logs resulting from traffic passing through the frontend using this line. If the directive is used in a defaults section, all - subsequent frontends will use the same log format. Please see section 8.2.4 + subsequent frontends will use the same log format. Please see section 8.2.6 which covers the log format string in depth. See https://tools.ietf.org/html/rfc5424#section-6.3 for more information @@ -10924,7 +10925,7 @@ redirect scheme [code ]