[$stgw_request_id] [$time_local] [$protocol_type] [$server_addr:$server_port] [$server_name] [$remote_addr:$remote_port] [$status] [$upstream_status] [$proxy_host] [$request] [$request_length] [$bytes_sent] [$http_host] [$http_user_agent] [$http_referer][$request_time] [$upstream_response_time] [$upstream_connect_time] [$upstream_header_time] [$tcpinfo_rtt] [$connection] [$connection_requests] [$ssl_handshake_time] [$ssl_cipher] [$ssl_protocol] [$ssl_session_reused]
变量名 | 说明 |
stgw_request_id | 请求 ID。 |
time_local | 访问的时间与时区,例如“01/Jul/2019:11:11:00 +0800”,最后的“+0800”表示所处时区为 UTC 之后的8小时,即为北京时间。 |
protocol_type | 协议类型(HTTP/HTTPS/SPDY/HTTP2/WS/WSS)。 |
server_addr:server_port | 请求的目的 IP 和目的端口。 |
server_name | 规则的 server_name,即服务器名称。 |
remote_addr:remote_port | 客户端 IP 和客户端端口。 |
status | CLB 返回给客户端的状态码。 |
upstream_status | RS 返回给 CLB 的状态码。 |
proxy_host | stream ID。 |
request | 请求行。 |
request_length | 从客户端收到的请求字节数。 |
bytes_sent | 发送到客户端的字节数。 |
http_host | 请求域名。 |
http_user_agent | HTTP 协议头的 user_agent 字段。 |
http_referer | HTTP 请求来源。 |
request_time | 请求处理时间:从收到客户端的第一个字节开始,直到给客户端发送的最后一个字节为止,包括客户端请求到 CLB、CLB 转发请求到 RS、RS 响应数据到 CLB、CLB 转发数据到客户端的总时间。 |
upstream_response_time | 整个后端请求所花费时间:从开始 CONNECT RS 到从 RS 接收完应答的时间。 |
upstream_connect_time | 和 RS 建立 TCP 连接所花费时间:从开始 CONNECT RS 到开始发送 HTTP 请求的时间。 |
upstream_header_time | 从 RS 接收完 HTTP 头部所花费时间:从开始 CONNECT RS 到从 RS 接收完 HTTP 应答头部的时间。 |
tcpinfo_rtt | TCP 连接的 RTT。 |
connection | 连接 ID。 |
connection_requests | 连接上的请求个数。 |
ssl_handshake_time | SSL 握手所花费时间。 |
ssl_cipher | SSL 加密套件。 |
ssl_protocol | SSL 协议版本。 |
ssl_session_reused | SSL SESSION 复用。 |
本页内容是否解决了您的问题?