I want to use GoAccess with Haproxy which works as reverse proxy and load balancer.
My goal is to create a custom log format which will be looking exactly like apache2 (compatible with default goaccess settings).
so far I did
capture request header Referrer len 64
capture request header Content-Length len 10
capture request header User-Agent len 64
log-format %si:%sp\ %ci\ -\ -\ [%t]\ "%r"\ %ST\ %B\ "%%Referrer"\ "%%User-Agent"
My haproxy version is HA-Proxy version 1.5.14 2015/07/02
I dont know how to extract referrer and user agent from captured request. I cant find anything usefull about Custom Log Format in manual.
EDIT
I figure out %hrl is a string list of the captured request headers. Is it possible to extract values by key or index?