在VCL中使用std.log可以输出ReqEnd吗? 我想在varnishncsa日志中使用ReqEnd。
你可以给varnishncsa输出添加额外的标志,使其显示更多的信息,包括ReqEnd报告的一些时间,参见文档 ,特别是-F format选项:
Supported formatters are: ... snip ... %t Time when the request was received, in HTTP date/time format. %{X}t Time when the request was received, in the format specified by X. The time specification format is the same as for strftime(3). %{X}x Varnish:time_firstbyte Time to the first byte from the backend arrived Varnish:hitmiss Whether the request was a cache hit or miss. Pipe and pass are considered misses. Varnish:handling How the request was handled, whether it was a cache hit, miss, pass, pipe or error. VCL_Log:key Output value set by std.log("key:value") in VCL.