Varnish, produzindo ReqEnd usando saída padrão

3

É possível produzir ReqEnd usando std.log no VCL? Eu gostaria de usar ReqEnd no registro de varnishncsa.

    
por Justin Hourigan 23.11.2012 / 17:38

1 resposta

0

Você pode adicionar sinalizadores extras à saída varnishncsa para exibir mais algumas informações, incluindo algumas das temporizações informadas por ReqEnd, consulte o documentação , especificamente a opção -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.
    
por 20.03.2013 / 19:01