Kinaba 中的 nginx access.log 数据

Kinaba 中的 nginx access.log 数据

https://docs.nginx.com/nginx/admin-guide/monitoring/logging/

https://nginx.org/en/docs/http/ngx_http_log_module.html

字段含义

  • request
    • “POST /api/xxxx HTTP/2.0”
    • 完整的原始请求行
  • server_name
    • xxxx.yyyy.com
    • lb 或者 ng 的服务器名(接受请求的服务器名)
  • upstream_addr
    • xxxxxx:80
    • upstream 地址
  • upstream_header_time
    • 0.964
    • upstream header 耗时
  • connection_requests
    • 54
    • 当前通过连接发出的请求数
  • ssl_cipher
    • xxxxxx
  • stgw_request_id:
    • cxcxxccxcxvcx
  • request_method
    • POST
  • http_host
    • xxxx.yyyy.com
    • lb 或者 ng 的
  • http_user_agent
    • Mozilla/5.0 (iPhone; CPU iPhone OS 15_5 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148 MicroMessenger/8.0.26(0x18001a34) NetType/4G Language/zh_CN",
  • upstream_status
    • 200
    • upstream 返回的状态
  • request_time
    • 0.972
    • 整个请求耗时
  • proxy_host
    • 1234567
  • connection
    • 3333333333333
  • tcpinfo_rtt
    • 80000
  • ssl_protocol
    • TLSv1.2
  • remote_addr
    • 1.2.3.4
    • 客户端请求IP
  • remote_port
    • xxxxx
    • 客户端请求端口
  • time_local
    • 31/Aug/xxxxxxxxxx +0800
    • 当前时间
  • bytes_sent
    • 515
  • server_addr
    • xxxxxxxxxxx
    • lb 或者 ng 的服务器名(接受请求的服务器地址)
  • server_port
    • 443
    • lb 或者 ng 的端口(接受请求的服务器端口)
  • uri
    • /api/xxxx
    • 本次请求的uri
  • protocol_type
    • http2
    • 协议类型
  • ssl_handshake_time
    • 0
    • 握手耗时
  • upstream_connect_time
    • 0.000
    • upstream 连接耗时
  • request_length
    • 48917
    • 请求体的bytes
  • http_referer
    • https://xxxxxxxxxxxxxxxx?a=bdasfasf
    • referer
  • ssl_session_reused
    • .
  • upstream_response_time
    • 0.964
    • upstream 响应耗时
  • server_protocol
    • HTTP/2.0
  • status
    • 200
    • 响应用户的状态码

在这里插入图片描述
在这里插入图片描述

{
    "request": "POST /api/xxxx HTTP/2.0",
    "server_name": "xxxx.yyyy.com",
    "upstream_addr": "xxxxxx:80",
    "upstream_header_time": "0.964",
    "connection_requests": "54",
    "ssl_cipher": "xxxxxx",
    "stgw_request_id": "cxcxxccxcxvcx",
    "request_method": "POST",
    "http_host": "xxxx.yyyy.com",
    "http_user_agent": "Mozilla/5.0 (iPhone; CPU iPhone OS 15_5 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148 MicroMessenger/8.0.26(0x18001a34) NetType/4G Language/zh_CN",
    "upstream_status": "200",
    "vip_vpcid": "sfdasdgdgf",
    "request_time": "0.972",
    "proxy_host": "1234567",
    "connection": "3333333333333",
    "tcpinfo_rtt": "80000",
    "ssl_protocol": "TLSv1.2",
    "remote_addr": "1.2.3.4",
    "remote_port": "xxxxx",
    "time_local": "31/Aug/xxxxxxxxxx +0800",
    "bytes_sent": "515",
    "server_addr": "xxxxxxxxxxx",
    "uri": "/api/xxxx",
    "protocol_type": "http2",
    "ssl_handshake_time": "0",
    "upstream_connect_time": "0.000",
    "request_length": "48917",
    "http_referer": "https://xxxxxxxxxxxxxxxx?a=bdasfasf",
    "ssl_session_reused": ".",
    "server_port": "443",
    "upstream_response_time": "0.964",
    "server_protocol": "HTTP/2.0",
    "status": "200",
    "__SOURCE__": "xxxxxx",
    "__FILENAME__": "access.log"
}

猜你喜欢

转载自blog.csdn.net/uwoerla/article/details/127503649