我想在我的varnishncsa日志中包含以下信息(我需要将某些问题与特定用户联系起来)。
在阅读https://www.varnish-cache.org/docs/trunk/reference/varnishncsa.html我不太确定我是如何实现它的。
顺便说一句,我不能添加“varnishncsa”标签的问题 – 有人可以添加它(具有较高的声誉?:P)。
这是可能的清漆3.0.3版本:
https://www.varnish-cache.org/releases/varnish-cache-3.0.3 http://lassekarstensen.wordpress.com/2012/06/15/varnishncsa-and-std-log/
在varnish(varnishncsa)中loggingPOST请求,Cookie和XID
你绝对需要使用varnishncsa? Varnishlog(带有一些额外的命令行选项或shellpipe道魔法)可以轻松地为您提供cookies(及其内容)和XID。 我怀疑POST请求的全部内容是可用的日志。