Quantcast
Channel: HAProxy community - Latest topics
Viewing all articles
Browse latest Browse all 4849

Problem with custom log format and http headers

$
0
0

@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 100

I'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

Read full topic


Viewing all articles
Browse latest Browse all 4849

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>