]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: logs: Add HTTP request-line log format directives
authorAndrew Hayworth <andrew.hayworth@getbraintree.com>
Mon, 27 Apr 2015 21:37:03 +0000 (21:37 +0000)
committerWilly Tarreau <w@1wt.eu>
Tue, 28 Apr 2015 19:03:05 +0000 (21:03 +0200)
commit0ebc55f6b42181c2206487ca4db3adc1d5846990
tree64c79a55169c6b08cfe8ec8a2ebed159f906580b
parente5843b383d3f584b22186be708ac7d69707c8d4b
MEDIUM: logs: Add HTTP request-line log format directives

This commit adds 4 new log format variables that parse the
HTTP Request-Line for more specific logging than "%r" provides.

For example, we can parse the following HTTP Request-Line with
these new variables:

  "GET /foo?bar=baz HTTP/1.1"

- %HM: HTTP Method ("GET")
- %HV: HTTP Version ("HTTP/1.1")
- %HU: HTTP Request-URI ("/foo?bar=baz")
- %HP: HTTP Request-URI without query string ("/foo")
doc/configuration.txt
include/types/log.h
src/log.c