HAproxy user-agent access log

Jbn1233
Feb 26, 2021

--

In some case, HAproxy work better than Nginx ,but I need to log an user-agent .

defaults
log-format "%{+Q}o \"%{-Q}ci\" %r %hrl %ST %B %cp %ms %ft %b %s %TR %Tw %Tc %Tr %Ta %tsc %ac %fc %bc %sc %rc %sq %bq %CC %CS"

and the important part.

frontend www-https
capture request header user-agent len 200

Output:

done

--

--

Jbn1233
Jbn1233

Written by Jbn1233

Very short and simple notes for CKA/SRE and may not works on your environment | jbn1233@gmail.com | Bangkok, Thailand |

No responses yet