@AllertGen wrote:
Hello, everyone.
I'm trying to use this type of log format:log-format %H\ %ci\ -\ [%t]\ %{+Q}r\ %ST\ -\ %U\ ${+Q}[req.hdr(referer)]\ ${+Q}[req.hdr(user-agent)]\ %{+Q}CC\ %Tq\ %{+Q}s\ NGINX-CACHE-\ "-"
capture request header Referer len 100
capture request header User-Agent len 100I'm expecting for getting at logs HTTP geaders of referer and user-agent, but I'm getting this part at logs exactly how I did write it at the configuration. What is the right way for logging custom headers to the log (not only standart referer and user-agent, but also any other)?
My version of haproxy is 1.5.4.
Best Regards.
Posts: 1
Participants: 1