mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-08-06 15:17:01 +02:00
Now that log-profile parsing logic has been implemented in "MINOR: log: add log-profile parsing logic" and is actually effective since "MEDIUM: log: handle log-profile in process_send_log()", let's document the feature and add some examples. Log-profile section is declared like this: log-profile myprof log-tag "custom-tag" on error format "%ci: error" on any format "(custom httplog) ${HAPROXY_HTTP_LOG_FMT}" sd "[exampleSDID@1234 step=\"accept\" id=\"%ID\"]" (check out the documentation for the full list of options, some options are only relevant under specific contexts) And used this way (from usual "log" directive lines): global log stdout format rfc5424 profile myprof local0 -------------- For now, the use of log-profiles is somewhat limited because we lack the ability to explicitly trigger the log building process at specific steps during the stream handling, but it should gain more traction over the time as the feature evolves and new mechanisms allowing the emission of logs at expected processing steps will be added. It should partially fix GH #401 |
||
---|---|---|
.. | ||
design-thoughts | ||
internals | ||
lua-api | ||
51Degrees-device-detection.txt | ||
acl.fig | ||
architecture.txt | ||
coding-style.txt | ||
configuration.txt | ||
cookie-options.txt | ||
DeviceAtlas-device-detection.txt | ||
gpl.txt | ||
haproxy.1 | ||
HAProxyCommunityEdition_60px.png | ||
intro.txt | ||
lgpl.txt | ||
linux-syn-cookies.txt | ||
lua.txt | ||
management.txt | ||
netscaler-client-ip-insertion-protocol.txt | ||
network-namespaces.txt | ||
peers-v2.0.txt | ||
peers.txt | ||
proxy-protocol.txt | ||
queuing.fig | ||
regression-testing.txt | ||
seamless_reload.txt | ||
SOCKS4.protocol.txt | ||
SPOE.txt | ||
WURFL-device-detection.txt |