日志管理

<p class="p" id="logmanagement__p_onn_41q_mlb">当您选择开启日志管理功能后,该存储空间所有的访问请求将以日志文件的形式进行记录,并且存储在指定的存储空间中。通过访问日志,存储空间的管理者可以对该空间的访问情况进行深入地分析,通常可以应用于安全及权限审核等场景。</p> <p class="p" id="logmanagement__p_rnn_41q_mlb">默认情况下,OBS不会收集访问日志。由于日志文件也会占用一定的存储空间,因此会产生额外的存储费用。</p> <p class="p" id="logmanagement__p_snn_41q_mlb">日志文件命名格式为:<em class="ph i">日志前缀(可为空)+ 日志源Bucket名称+日志生成时间+日志id。</em></p> <table class="table frame-all" id="logmanagement__table_tkr_b3z_kkb"><caption></caption><colgroup><col style="width:50%"><col style="width:50%"></colgroup><thead class="thead"> <tr class="row"> <th class="entry" id="logmanagement__table_tkr_b3z_kkb__entry__1">字段</th> <th class="entry" id="logmanagement__table_tkr_b3z_kkb__entry__2">说明</th> </tr> </thead><tbody class="tbody"> <tr class="row"> <td class="entry" headers="logmanagement__table_tkr_b3z_kkb__entry__1 "> <p class="p">Reserved</p> </td> <td class="entry" headers="logmanagement__table_tkr_b3z_kkb__entry__2 "> <p class="p">保留字段</p> </td> </tr> <tr class="row"> <td class="entry" headers="logmanagement__table_tkr_b3z_kkb__entry__1 "> <p class="p">Reserved</p> </td> <td class="entry" headers="logmanagement__table_tkr_b3z_kkb__entry__2 "> <p class="p">保留字段</p> </td> </tr> <tr class="row"> <td class="entry" headers="logmanagement__table_tkr_b3z_kkb__entry__1 "> <p class="p">Time</p> </td> <td class="entry" headers="logmanagement__table_tkr_b3z_kkb__entry__2 "> <p class="p">OBS收到请求的时间 </p> </td> </tr> <tr class="row"> <td class="entry" headers="logmanagement__table_tkr_b3z_kkb__entry__1 "> <p class="p">Request-URI</p> </td> <td class="entry" headers="logmanagement__table_tkr_b3z_kkb__entry__2 "> <p class="p">用户请求的URI </p> </td> </tr> <tr class="row"> <td class="entry" headers="logmanagement__table_tkr_b3z_kkb__entry__1 "> <p class="p">HTTP Status</p> </td> <td class="entry" headers="logmanagement__table_tkr_b3z_kkb__entry__2 "> <p class="p">OBS返回的HTTP状态码</p> </td> </tr> <tr class="row"> <td class="entry" headers="logmanagement__table_tkr_b3z_kkb__entry__1 "> <p class="p">SentBytes</p> </td> <td class="entry" headers="logmanagement__table_tkr_b3z_kkb__entry__2 "> <p class="p">用户从OBS 下载的流量 </p> </td> </tr> <tr class="row"> <td class="entry" headers="logmanagement__table_tkr_b3z_kkb__entry__1 "> <p class="p">RequestTime (ms)</p> </td> <td class="entry" headers="logmanagement__table_tkr_b3z_kkb__entry__2 "> <p class="p">完成本次请求的时间(毫秒)</p> </td> </tr> <tr class="row"> <td class="entry" headers="logmanagement__table_tkr_b3z_kkb__entry__1 "> <p class="p">Referer</p> </td> <td class="entry" headers="logmanagement__table_tkr_b3z_kkb__entry__2 "> <p class="p">请求的HTTP Referer </p> </td> </tr> <tr class="row"> <td class="entry" headers="logmanagement__table_tkr_b3z_kkb__entry__1 "> <p class="p">User-Agent</p> </td> <td class="entry" headers="logmanagement__table_tkr_b3z_kkb__entry__2 "> <p class="p">HTTP的User-Agent头</p> </td> </tr> <tr class="row"> <td class="entry" headers="logmanagement__table_tkr_b3z_kkb__entry__1 "> <p class="p">HostName</p> </td> <td class="entry" headers="logmanagement__table_tkr_b3z_kkb__entry__2 "> <p class="p">请求访问域名</p> </td> </tr> <tr class="row"> <td class="entry" headers="logmanagement__table_tkr_b3z_kkb__entry__1 "> <p class="p">Request ID</p> </td> <td class="entry" headers="logmanagement__table_tkr_b3z_kkb__entry__2 "> <p class="p">用于唯一标识该请求的UUID</p> </td> </tr> <tr class="row"> <td class="entry" headers="logmanagement__table_tkr_b3z_kkb__entry__1 "> <p class="p">LoggingFlag</p> </td> <td class="entry" headers="logmanagement__table_tkr_b3z_kkb__entry__2 "> <p class="p">是否开启了访问日志功能</p> </td> </tr> <tr class="row"> <td class="entry" headers="logmanagement__table_tkr_b3z_kkb__entry__1 "> <p class="p">Requester Tenant ID</p> </td> <td class="entry" headers="logmanagement__table_tkr_b3z_kkb__entry__2 "> <p class="p">请求者的平安云租户ID;匿名访问为“-”</p> </td> </tr> <tr class="row"> <td class="entry" headers="logmanagement__table_tkr_b3z_kkb__entry__1 "> <p class="p">Operation</p> </td> <td class="entry" headers="logmanagement__table_tkr_b3z_kkb__entry__2 "> <p class="p">请求类型(HEAD/GET/PUT/POST/DELETE)</p> </td> </tr> <tr class="row"> <td class="entry" headers="logmanagement__table_tkr_b3z_kkb__entry__1 "> <p class="p">Bucket</p> </td> <td class="entry" headers="logmanagement__table_tkr_b3z_kkb__entry__2 "> <p class="p">请求访问的Bucket名字 </p> </td> </tr> <tr class="row"> <td class="entry" headers="logmanagement__table_tkr_b3z_kkb__entry__1 "> <p class="p">Key</p> </td> <td class="entry" headers="logmanagement__table_tkr_b3z_kkb__entry__2 "> <p class="p">用户请求的Key</p> </td> </tr> <tr class="row"> <td class="entry" headers="logmanagement__table_tkr_b3z_kkb__entry__1 "> <p class="p">ObjectSize</p> </td> <td class="entry" headers="logmanagement__table_tkr_b3z_kkb__entry__2 "> <p class="p">Object大小 </p> </td> </tr> <tr class="row"> <td class="entry" headers="logmanagement__table_tkr_b3z_kkb__entry__1 "> <p class="p">Server Cost Time (ms)</p> </td> <td class="entry" headers="logmanagement__table_tkr_b3z_kkb__entry__2 "> <p class="p">OBS服务器处理本次请求所花的时间(毫秒)</p> </td> </tr> <tr class="row"> <td class="entry" headers="logmanagement__table_tkr_b3z_kkb__entry__1 "> <p class="p">Error Code</p> </td> <td class="entry" headers="logmanagement__table_tkr_b3z_kkb__entry__2 "> <p class="p">OBS返回的错误码</p> </td> </tr> <tr class="row"> <td class="entry" headers="logmanagement__table_tkr_b3z_kkb__entry__1 "> <p class="p">Request Length</p> </td> <td class="entry" headers="logmanagement__table_tkr_b3z_kkb__entry__2 "> <p class="p">用户请求的长度(Byte)</p> </td> </tr> <tr class="row"> <td class="entry" headers="logmanagement__table_tkr_b3z_kkb__entry__1 "> <p class="p">UserID</p> </td> <td class="entry" headers="logmanagement__table_tkr_b3z_kkb__entry__2 "> <p class="p">Bucket拥有者ID </p> </td> </tr> <tr class="row"> <td class="entry" headers="logmanagement__table_tkr_b3z_kkb__entry__1 "> <p class="p">Delta DataSize</p> </td> <td class="entry" headers="logmanagement__table_tkr_b3z_kkb__entry__2 ">Bucket大小的变化量;若没有变化,显示为- </td> </tr> <tr class="row"> <td class="entry" headers="logmanagement__table_tkr_b3z_kkb__entry__1 "> <p class="p">Sync Request</p> </td> <td class="entry" headers="logmanagement__table_tkr_b3z_kkb__entry__2 "> <p class="p">是否是CDN回源请求;若为否,显示为-</p> </td> </tr> <tr class="row"> <td class="entry" headers="logmanagement__table_tkr_b3z_kkb__entry__1 "> <p class="p">Reserved</p> </td> <td class="entry" headers="logmanagement__table_tkr_b3z_kkb__entry__2 "> <p class="p">保留字段</p> </td> </tr> </tbody></table>
以上内容是否解决了您的问题?
请补全提交信息!
咨询·建议

电话咨询

400-151-8800

邮件咨询

cloud@pingan.com

在线客服

工单支持

解决云产品相关技术问题