]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: sample: accept_date / request_date return %Ts / %tr timestamp values
authorWilliam Lallemand <wlallemand@haproxy.org>
Thu, 13 Jul 2023 14:18:47 +0000 (16:18 +0200)
committerWilliam Lallemand <wlallemand@haproxy.org>
Mon, 24 Jul 2023 15:12:29 +0000 (17:12 +0200)
commit739c4e5b1ee348b25bf666805b7bbbdf9c7198a8
tree7638cfcaa6b855e941ca9e9c20887825f9984d6e
parent2a46bfe2398b278611827cba76570d3463186e03
MINOR: sample: accept_date / request_date return %Ts / %tr timestamp values

Implement %[accept_date] which returns the same as %Ts log-format tag.
Implement %[request_date] which is a timestamp for %tr.

accept_date and request_date take an faculative unit argument which can
be 's', 'ms' or 'us'.

The goal is to be able to convert these 2 timestamps to HAProxy date
format like its done with %T, %tr, %trg etc
doc/configuration.txt
src/tcp_sample.c