]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MAJOR: log: introduce log backends
authorAurelien DARRAGON <adarragon@haproxy.com>
Wed, 13 Sep 2023 09:52:31 +0000 (11:52 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 13 Oct 2023 08:05:06 +0000 (10:05 +0200)
commit9a74a6cb17717b0866e75d4bc10b30827b7a5634
tree6077918837ce8650e1772a1eeb7581a1fa5c8209
parente58a9b4baf485810c4f561e95e7f589dde26cf9b
MAJOR: log: introduce log backends

Using "mode log" in a backend section turns the proxy in a log backend
which can be used to log-balance logs between multiple log targets
(udp or tcp servers)

log backends can be used as regular log targets using the log directive
with "backend@be_name" prefix, like so:

  | log backend@mybackend local0

A log backend will distribute log messages to servers according to the
log load-balancing algorithm that can be set using the "log-balance"
option from the log backend section. For now, only the roundrobin
algorithm is supported and set by default.
doc/configuration.txt
include/haproxy/backend-t.h
include/haproxy/backend.h
include/haproxy/log-t.h
include/haproxy/server-t.h
src/backend.c
src/cfgparse-listen.c
src/cfgparse.c
src/log.c
src/proxy.c
src/server.c