Можно ли вывести ReqEnd используя std.log в VCL? Я хотел бы использовать ReqEnd в логировании varnishncsa.
Вы можете добавить дополнительные флаги в 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.