For such defaults section: defaults log stdout local0 log-format 'path:%[path]'
I'm getting following error: [ALERT] 335/060923 (13259) : Parsing [haproxy.cfg:11]: failed to parse log-format : sample fetch <path]}> may not be reliably used here because it needs 'HTTP request headers' which is not available here. What I'm doing wrong? :) wt., 1 gru 2020 o 06:56 Willy Tarreau <[email protected]> napisaĆ(a): > On Tue, Dec 01, 2020 at 06:54:16AM +0100, Maciej Zdeb wrote: > > There's no difference with %[path] in fact this patch only exposes "path" > > fetch as %HPR. It's only an usability matter. Usually I'm setting some > sane > > log-format in the defaults section (where I can't use %[path]) and only > for > > some critically important frontends I'm overwriting it to be more > verbose. > > Why do you say you can't use %[path] in the defaults section ? > > Willy >

