[squid-users] acl / format code evaluation

Jason Spashett jason.spashett at menlosecurity.com
Fri Nov 5 15:00:05 UTC 2021


On Fri, 5 Nov 2021 at 14:35, Alex Rousskov
<rousskov at measurement-factory.com> wrote:
...
> They are evaluated when used. In your specific case, you have not told
> us how your configuration uses logformat "log", but if you are using
> "log" just for the access_log directive, then "log" %codes are evaluated
> when Squid creates the access.log record for each transaction.
>
>
> HTH,
>
> Alex.

Thanks Alex,

After looking at the source code again I am beginning to understand
how the format codes are used.

On the subject of unique ids, the code %random isn't necessarily of my
choosing. But it has 54^8 combinations, and comes from /dev/urandom by
way of a Mersenne Twister. But I will give due consideration to usage
of such a thing. I think you are suggesting that a "proper" UUID may
be better, that incorporates a time element and is suitably long.

Given that %master_axtion is a counter which resets when you restart
squid, and is not unique among squids (or restarts), is there not a
case to be made for making one available?

Regards,
Jason


More information about the squid-users mailing list