varnishlog record length

Luca Gervasi luca.gervasi at gmail.com
Thu Jul 13 09:44:53 UTC 2023


Hi,
i'm helping to fix some issues with cookies (number, length...) thus I need
to dump all the cookies in every request (tied with the host header). I
tried with varnishlog but the actual value is limited (in our
configuration) to ~ 700 bytes by the vsl_reclen parameter, I suppose.
Reading the documentation, that value ranges between 16b and 4084b, which
is lower than what I need to dump the full monster cookie (~ 24kb).

At the moment I'm using tcpdump in the proxy port, but it is really
impractical as I have to grep/awk and group the requests...and I'm not
really proud about its manutenablity.

Is there a way to dump, for every request that contains the cookie header,
such header plus others? (in my case: host)?

I was thinking about tapping into varnish functions using eBPF. What do you
think? Do you have something already working for my case that I could
tamper with?

Thanks

Luca
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-misc/attachments/20230713/a9ebff9b/attachment.html>


More information about the varnish-misc mailing list