]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: log: add the ability to include samples in logs
authorWilly Tarreau <w@1wt.eu>
Thu, 20 Dec 2012 23:09:23 +0000 (00:09 +0100)
committerWilly Tarreau <w@1wt.eu>
Fri, 21 Dec 2012 18:24:49 +0000 (19:24 +0100)
commitc83684519bb0660ea4fc985ded598a1d918b2a36
treea194decd7d354aac65fe150fb5b2cd5d86a28b06
parent2b0108adf6ec666d6f5e4a38cac2d4314a8e2cb5
MEDIUM: log: add the ability to include samples in logs

Using %[expression] it becomes possible to make the log engine fetch
some samples from the request or the response and provide them in the
logs. Note that this feature is still limited, it does not yet allow
to apply converters, to limit the output length, nor to specify the
direction which should be fetched when a fetch function works in both
directions.

However it's quite convenient to log SSL information or to include some
information that are used in stick tables.

It is worth noting that this has been done in the generic log format
handler, which means that the same information may be used to build the
unique-id header and to pass the information to a backend server.
doc/configuration.txt
include/types/log.h
src/log.c