欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  科技

Nginx日志常见时间变量解析

程序员文章站 2022-04-18 18:09:09
$request_time 官方解释:request processing time in seconds with a milliseconds resolution; time elapsed between the first bytes were read from the client a ......

$request_time

官方解释:request processing time in seconds with a milliseconds resolution; time elapsed between the first bytes were read from the client and the log write after the last bytes were sent to the client.

客户端发出第一个字节开始到接收到最后一个字节的时间。

$upstream_response_time

官方解释:keeps time spent on receiving the response from the upstream server; the time is kept in seconds with millisecond resolution. times of several responses are separated by commas and colons like addresses in the $upstream_addr variable.

nginx与后端建立连接到传输完数据连接断开为止的时间。

$upstream_connect_time

官方解释:keeps time spent on establishing a connection with the upstream server (1.9.1); the time is kept in seconds with millisecond resolution. in case of ssl, includes time spent on handshake. times of several connections are separated by commas and colons like addresses in the $upstream_addr variable.

nginx与上游服务器建立连接所消耗的时间,其中包含连接握手的时间,单位为秒。

$upstream_header_time

官方解释:keeps time spent on receiving the response header from the upstream server (1.7.10); the time is kept in seconds with millisecond resolution. times of several responses are separated by commas and colons like addresses in the $upstream_addr variable.

从上游服务器接收响应头的时间,单位为秒。