]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: log: change default "host" strategy for log-forward section
authorAurelien DARRAGON <adarragon@haproxy.com>
Tue, 11 Mar 2025 14:15:34 +0000 (15:15 +0100)
committerAurelien DARRAGON <adarragon@haproxy.com>
Wed, 12 Mar 2025 09:55:49 +0000 (10:55 +0100)
commite94230521492f3a5c3a7afec77d7a1a499832795
tree92675d0771f849cbd2fbed0e5098fdd20a8884ed
parentad0133cc50f988f574415d49e9a03e6cfe45d022
MEDIUM: log: change default "host" strategy for log-forward section

Historically, log-forward proxy used to preserve host field from input
message as much as possible, and if syslog host wasn't provided
(rfc5424 '-' or bad rfc3164 or rfc5424 message) then "localhost" or "-"
would be used as host when outputting message using rfc3164 or rfc5424.

We change that behavior (which corresponds to "keep" host option), so that
log-forward now uses "fill" strategy as default: if the host is provided
in input message, it is preserved. However if it is missing and IP address
from sender is available, we use it.
doc/configuration.txt
src/log.c