



字段名 | 说明 |
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 | CLB 的 VIP。 |
server_port | CLB 的 VPort,即监听端口。 |
server_name | 规则的 server_name,CLB 的监听器中配置的域名。 |
remote_addr | 客户端 IP。 |
remote_port | 客户端端口。 |
status | CLB 返回给客户端的状态码。 |
upstream_addr | RS 地址。 |
upstream_status | RS 返回给 CLB 的状态码。 |
proxy_host | stream ID。 |
request | 请求行。 |
request_length | 从客户端收到的请求字节数。 |
bytes_sent | 发送到客户端的字节数。 |
http_host | 请求域名,即 HTTP 头部中的 Host。 |
http_user_agent | HTTP 协议头的 user_agent 字段。 |
http_referer | HTTP 请求来源。 |
http_x_forwarded_for | HTTP 请求中 x-forwarded-for header 的内容。 |
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 握手各阶段耗时,格式:x:x:x:x:x:x:x。其中,冒号分隔的字符串,单位是ms,每个阶段耗时若小于1ms则显示为0。 第1个字段表示是否 SSL 会话复用。 第2个字段表示完整的握手时间。 3~7表示 SSL 各阶段耗时。 第3个字段表示 CLB 从收到 client hello 到发送 server hello done 的时间。 第4个字段表示 CLB 从发送 server 证书开始到发送 server 证书完成的时间。 第5个字段表示 CLB 从计算签名到发送 server key exchange 完成的时间。 第6个字段表示 CLB 从收到 client key exchange 开始到收完 client key exchange 的时间。 第7个字段表示 CLB 从收到 client key exchange 到发送 server finished 的时间。 |
ssl_cipher | SSL 加密套件。 |
ssl_protocol | SSL 协议版本。 |
vip_vpcid | 负载均衡实例所属的私有网络 ID,公网 CLB 的取值为-1。 |
request_method | 请求方式,支持 POST 和 GET 请求。 |
uri | 资源标识符。 |
server_protocol | CLB 的协议。 |


* | select count(*) as pv, ip_to_province(remote_addr) as address group by address limit 10000
* | select count(*) as pv, ip_to_country(remote_addr) as address group by address limit 10000


* | select histogram(cast(__TIMESTAMP__ as timestamp),interval 1 second) as time, count(*) as "QPS" group by time order by time desc limit 10000

文档反馈