haproxy/admin
Tim Duesterhus 66255f7bbf MINOR: halog: Add support for extracting captures using -hdr
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.
2021-10-28 19:44:18 +02:00
..
dyncookie CLEANUP: Add haproxy/xxhash.h to avoid modifying import/xxhash.h 2021-09-11 19:58:45 +02:00
halog MINOR: halog: Add support for extracting captures using -hdr 2021-10-28 19:44:18 +02:00
iprange CONTRIB: move some admin-related sub-projects to admin/ 2021-04-02 17:48:42 +02:00
netsnmp-perl ADMIN: netsnmp: report "HAProxy" and not "Haproxy" in output descriptions 2021-05-09 06:41:37 +02:00
release-estimator CONTRIB: move some admin-related sub-projects to admin/ 2021-04-02 17:48:42 +02:00
selinux CONTRIB: move some admin-related sub-projects to admin/ 2021-04-02 17:48:42 +02:00
syntax-highlight MAJOR: config: remove parsing of the global "nbproc" directive 2021-06-11 17:02:13 +02:00
systemd MINOR: systemd: remove the ExecStartPre line in the unit file 2021-08-20 23:36:45 +02:00
wireshark-dissectors/peers MINOR: freq_ctr: unify freq_ctr and freq_ctr_period into freq_ctr 2021-04-11 11:11:27 +02:00