]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: Implements new log format of option tcplog clf
authorNathan Wehrman <nwehrman@haproxy.com>
Tue, 13 Aug 2024 18:25:38 +0000 (11:25 -0700)
committerWilly Tarreau <w@1wt.eu>
Tue, 20 Aug 2024 05:46:34 +0000 (07:46 +0200)
commitfd48b28315a923a6941ced201a2b6c58f426c427
treedf299125f1fd42a6b4e553ff06b1d00be80a356f
parent974fae2b171dd02811dbaf6842269a779a1da511
MINOR: Implements new log format of option tcplog clf

Some systems require log formats in the CLF format and that meant that I
could not send my logs for proxies in mode tcp to those servers.  This
implements a format that uses log variables that are compatble with TCP
mode frontends and replaces traditional HTTP values in the CLF format
to make them stand out. Instead of logging method and URI like this
"GET /example HTTP/1.1" it will log "TCP " and for a response code I
used "000" so it would be easy to separate from legitimate HTTP
traffic. Now your log servers that require a CLF format can see the
timings for TCP traffic as well as HTTP.
doc/configuration.txt
include/haproxy/log.h
src/cfgparse-listen.c
src/log.c
src/proxy.c