[squid-users] Display eCAP meta-information on Squid error-page

chgerber christof.gerber1 at gmail.com
Tue Jun 5 15:48:30 UTC 2018


> logformat myLog ... adapter-decision=%{my-ecap-header}note ... 
>  access_log ... myLog ..

I tried this but it didn't work as it does with
"%{my-ecap-header}adapt::<last_h". I am not sure if "my-ecap-header" is a
really a header as I called it as I hand it over to squid as
libecap::NamedValueVisitor when visitEachOption() is called. I guess it is
an ecap option or ecap meta information rather than a header, right? I guess
when you talk about ecap headers you mean http headers set by the eCAP
adapter. 

Should the logging with %note and applying ACL also work with ecap meta
information and am I doing something wrong or is this not supported with
ecap meta information? In the latter case I guess I would have to change it
to a solution where the eCAP adapter sets a proper http header which can
then be logged as described above.

Source of confusion:
"adapt::<last_h	The header of the last ICAP response or meta-information
from the last eCAP transaction related to the HTTP transaction."
http://www.squid-cache.org/Versions/v3/3.5/cfgman/logformat.html




--
Sent from: http://squid-web-proxy-cache.1019090.n4.nabble.com/Squid-Users-f1019091.html


More information about the squid-users mailing list