mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-09-21 22:01:31 +02:00
This patch adds support for extracting captured header fields to halog. A field can be extracted by passing the `-hdr <block>:<field>` output filter. Both `<block>` and `<field>` are 1-indexed. `<block>` refers to the index of the brace-delimited list of headers. If both request and response headers are captured, then request headers are referenced by `<block> = 1`, response headers are `2`. If only one direction is captured, there will only be a single block `1`. `<field>` refers to a single field within the selected block. The output will contain one line, possibly empty, per log line processed. Passing a non-existent `<block>` or `<field>` will result in an empty line. Example: capture request header a len 50 capture request header b len 50 capture request header c len 50 capture response header d len 50 capture response header e len 50 capture response header f len 50 `-srv 1:1` will extract request header `a` `-srv 1:2` will extract request header `b` `-srv 1:3` will extract request header `c` `-srv 2:3` will extract response header `f` This resolves GitHub issue #1146.
The HAProxy documentation has been split into a number of different files for ease of use. Please refer to the following files depending on what you're looking for : - INSTALL for instructions on how to build and install HAProxy - BRANCHES to understand the project's life cycle and what version to use - LICENSE for the project's license - CONTRIBUTING for the process to follow to submit contributions The more detailed documentation is located into the doc/ directory : - doc/intro.txt for a quick introduction on HAProxy - doc/configuration.txt for the configuration's reference manual - doc/lua.txt for the Lua's reference manual - doc/SPOE.txt for how to use the SPOE engine - doc/network-namespaces.txt for how to use network namespaces under Linux - doc/management.txt for the management guide - doc/regression-testing.txt for how to use the regression testing suite - doc/peers.txt for the peers protocol reference - doc/coding-style.txt for how to adopt HAProxy's coding style - doc/internals for developer-specific documentation (not all up to date)
Description
Languages
C
98.1%
Shell
0.8%
Makefile
0.5%
Lua
0.2%
Python
0.2%