Nginx日誌常見時間變量解析

$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.server

Nginx與後端創建鏈接到傳輸完數據鏈接斷開爲止的時間。it

$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.io

Nginx與上游服務器創建鏈接所消耗的時間,其中包含鏈接握手的時間,單位爲秒。ast

$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.stream

從上游服務器接收響應頭的時間,單位爲秒。cli

相關文章
相關標籤/搜索