BUG/MEDIUM: local log format regression.
authorEmeric Brun <ebrun@haproxy.com>
Fri, 27 Nov 2020 15:24:34 +0000 (16:24 +0100)
committerWilly Tarreau <w@1wt.eu>
Tue, 1 Dec 2020 05:58:42 +0000 (06:58 +0100)
commit0237c4e3f5deb062e8714d02588c86d48fa2703c
tree70982df6b7077ed4b0a47ea0109fa055f798e67b
parent4d6c594998a47d2c62ff74fba36f5798bea1a228
BUG/MEDIUM: local log format regression.

Since 2.3 default local log format always adds hostame field.
This behavior change was due to log/sink re-work, because according
to rfc3164 the hostname field is mandatory.

This patch re-introduce a legacy "local" format which is analog
to rfc3164 but with hostname stripped. This is the new
default if logs are generated by haproxy.

To stay compliant with previous configurations, the option
"log-send-hostname" acts as if the default format is switched
to rfc3164.

This patch addresses the github issue #963

This patch should be backported in branches >= 2.3.
doc/configuration.txt
include/haproxy/log-t.h
src/log.c
src/sink.c