更新时间:2024-06-13 GMT+08:00
分享

CDN接入

LTS支持内容分发网络(CDN)日志接入,具体接入方法请参见实时日志

介绍CDN的结构化模板日志详情。

结构化模板日志详情

  • 日志示例
    表1 结构化模板示例

    模板名称

    示例日志

    CDN

    {"request_time":"1666604392000","domain":"findercdn.video.qq.com","method":"GET","scheme":"http","uri":"/BcimRg.txt","uri_param":"cdnkey=******&cdntoken=******&tokenidx=1","client_ip":"192.168.233.142","client_port":"51517","refer_protocol":"-","refer_domain":"-","refer_uri":"-","refer_param":"-","request_size":"301","response_time":"14","response_size":"588","http_code":"403","response_range":"-","request_range":"-","request_body_bytes":"150","content_type":"text/html","hit_info":"HIT","user_agent":"python-requests/2.21.0","uuid":"ce6327e015c1e16f581818b838a6cb0c","via_info":"edge-cache01[14]","xforwordfor":"-"}

    cdnkey的值为示例请供参考,请以实际值为准。

  • 结构化字段及字段说明
    表2 结构化字段

    字段

    示例

    描述

    类型

    request_time

    1666604392000

    请求时间戳,单位:毫秒

    string

    domain

    findercdn.video.qq.com

    请求的域名

    string

    method

    GET

    请求方法

    string

    scheme

    http

    请求协议

    string

    uri

    /BcimRg.txt

    请求资源

    string

    uri_param

    cdnkey=******&cdntoken=******&tokenidx=1

    请求参数

    string

    client_ip

    192.168.233.142

    用户真实IP

    string

    client_port

    51517

    和CDN节点建连客户端端口

    string

    refer_protocol

    -

    HTTP refer中的协议

    string

    refer_domain

    -

    HTTP refer中domain信息

    string

    refer_uri

    -

    HTTP refer中uri信息

    string

    refer_param

    -

    HTTP refer中的参数信息

    string

    request_size

    301

    请求大小

    string

    response_time

    14

    请求响应时长,单位:毫秒

    string

    response_size

    588

    请求返回大小,单位:字节

    string

    http_code

    403

    请求响应码

    string

    response_range

    -

    应答头里表示的range信息(由源站创建),如bytes:0~99/200

    string

    request_range

    -

    用户请求中Header头中range字段取值,如bytes:0~100

    string

    request_body_bytes

    150

    实际发送body大小,单位:字节

    string

    content_type

    text/html

    请求的资源类型

    string

    hit_info

    HIT

    命中信息,取值为HIT(命中)、MISS(未命中)

    string

    user_agent

    python-requests/2.21.0

    UA

    string

    uuid

    ce6327e015c1e16f581818b838a6cb0c

    请求唯一标识(全网唯一请求ID,即traceid)

    string

    via_info

    edge-cache01[14]

    via头信息

    string

    xforwordfor

    -

    请求头中XForwardFor字段

    string

分享:

    相关文档

    相关产品