]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
DOC: config: Fix log-format example with last rule expressions
authorChristopher Faulet <cfaulet@haproxy.com>
Mon, 27 Apr 2026 05:32:20 +0000 (07:32 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Mon, 27 Apr 2026 05:35:08 +0000 (07:35 +0200)
%[] were missing.

doc/configuration.txt

index 461c07b4045ddbe31366e703d0b61a3573d7610f..af581e2159aacb5e71fd8d8562da9702b015b9f8 100644 (file)
@@ -1031,7 +1031,7 @@ The variables in question are the following:
 
     Example:
       # Add the rule that gave the final verdict to the log
-      log-format "${HAPROXY_TCP_LOG_FMT} lr=last_rule_file:last_rule_line"
+      log-format "${HAPROXY_TCP_LOG_FMT} lr=%[last_rule_file]:%[last_rule_line]"
 
   * HAPROXY_HTTPS_LOG_FMT: similar to HAPROXY_HTTP_LOG_FMT but for HTTPS log
     format as defined in section 8.2.4 "HTTPS log format".