全部產品
Search
文件中心

Simple Log Service:日誌欄位詳情

更新時間:Nov 13, 2025

本文介紹OSS日誌欄位詳情。

OSS日誌類型

日誌類型

說明

訪問明細日誌

  • 需要手動開通,開通步驟請參見開啟日誌採集功能

  • 即時採集相關OSS Bucket的所有訪問日誌、大量刪除日誌時的刪除資訊。

    說明
    • 當您調用DeleteObjects介面時,訪問日誌中會有一條請求記錄。

    • oss-log-store可能同時包含訪問明細日誌每小時計量日誌(不同於下面的計量日誌),_topic_:oss_access_log代表訪問明細日誌_topic_:oss_metering_log代表每小時計量日誌

計量日誌

  • 預設免費開通。

  • 記錄特定OSS Bucket每小時累計的計量資料。日誌採集時間比實際產生時間延遲幾小時,用於輔助分析。

時序監控資料

  • 預設免費開通。

  • 記錄10秒粒度的請求、延遲、流量等指標及5分鐘粒度的請求、流量等指標。

訪問明細日誌

欄位

說明

__topic__

日誌主題,固定為oss_access_log。

time

OSS請求結束時間,例如27/Feb/2018:13:58:45。

如果需要時間戳記,可以使用__time__欄位。

access_id

要求者的AccessKey ID。

owner_id

OSS Bucket擁有者的阿里雲帳號ID。

user_agent

HTTP的User-Agent頭,例如curl/7.15.5。

logging_flag

是否開啟定期匯出日誌到OSS Bucket的功能。其中,true表示開啟。

bucket

OSS Bucket名稱。

content_length_in

要求標頭中Content-Length的值,單位:位元組。

content_length_out

回應標頭中Content-Length的值,單位:位元組。

object

請求的OSS Object,格式為URL編碼。

查詢時可以使用select url_decode(object)解碼。

object_size

OSS Object的大小,單位:位元組。

operation

訪問類型。更多資訊,請參見附錄:訪問類型

bucket_location

OSS Bucket所在的資料中心,一般格式為oss-<region ID>

request_uri

HTTP請求的URI,包括query-string,格式為URL編碼。

查詢時可以使用select url_decode(request_uri)解碼。

error_code

OSS返回的錯誤碼。更多資訊,請參見OSS錯誤碼

request_length

HTTP請求的大小,包括header,單位:位元組。

client_ip

發起請求的IP地址,即用戶端IP地址、其網路防火牆或Proxy IP地址。

response_body_length

HTTP響應中的Body大小,不包括header。

http_method

HTTP要求方法。

referer

請求的HTTP Referer。

requester_id

要求者的ID,如果是匿名訪問,則顯示為短劃線(-)。

request_id

請求ID。

response_time

HTTP回應時間,單位:毫秒。

server_cost_time

OSS伺服器處理本次請求所花的時間,單位:毫秒。

http_type

HTTP請求類型,包括HTTP和HTTPS。

sign_type

簽名類型。

  • NotSign:未簽名。

  • NormalSign:一般方式簽名。

  • UriSign:通過URL簽名。

  • AdminSign:管理員帳號。

  • NORMAL_SIGN4:V4簽名。

  • URI_SIGN4:在URL種包含V4簽名

http_status

HTTP請求返回的狀態。

sync_request

同步請求類型。

  • 短劃線(-):一般請求。

  • cdn:CDN回源。

  • lifecycle:設定生命週期規則。

bucket_storage_type

OSS Object儲存類型。

  • standard:標準儲存類型。

  • archive:Archive Storage類型。

  • IA:低頻訪問儲存類型。

host

請求訪問網域名稱,例如:bucket123.oss-cn-beijing.aliyuncs.com。

vpc_addr

OSS所在VPC的Havip地址。

該地址為整數類型(例如343819108),您可以使用int_to_ip(cast(vpc_addr as bigint)),將其轉換為IP地址形式。

vpc_id

OSS所在VPC的ID。

delta_data_size

OSS Object大小的變化量,如果沒有變化則為0;如果不是上傳請求,則為短劃線(-) 。

ec

詳細錯誤碼。根據錯誤碼自助排查的步驟,請參見使用EC錯誤碼自助排查

acc_access_region

如果是傳輸加速請求,該欄位為請求存取點所在地區名,否則為短劃線(-)。

restore_priority

解凍優先順序。

extend_information

擴充欄位,預設為短劃線(-)。

如果是通過RAM角色發起的請求,則日誌會記錄相關的RAM角色資訊,拼接規則為requesterParentId,roleName,roleSessionName,roleOwnerId,以半形逗號(,)分隔,可能會繼續拼接新欄位。

user_defined_log_fields

擴充欄位,預設為短劃線(-)。

如果您為該Bucket配置了自訂header和param,則日誌會記錄與配置中相匹配的header和param的資訊,為一個JSON欄位進行base64編碼後的值。

archive_direct_read_size

請求產生的歸檔直讀計量大小。如果是非歸檔直讀,則為短劃線(-),單位:位元組。

計量日誌

欄位

說明

__topic__

日誌主題,固定為oss_metering_log。

owner_id

OSS Bucket擁有者的阿里雲帳號ID。

bucket

OSS Bucket名稱。

cdn_in

CDN流入量,單位:位元組。

cdn_out

CDN流出量,單位:位元組。

metering_datasize

非標準儲存的計量資料大小。

get_request

GET請求次數。

intranet_in

內網流入量,單位:位元組。

intranet_out

內網流出量,單位:位元組。

network_in

外網流入量,單位:位元組。

network_out

外網流出量,單位:位元組。

put_request

PUT請求次數。

storage

OSS Bucket儲存量,單位:位元組。

storage_type

OSS Bucket儲存類型 。

  • standard:標準儲存類型。

  • archive:Archive Storage類型。

  • IA:低頻訪問儲存類型。

process_img_size

處理的映像大小,單位:位元組。

sync_in

同步流入量,單位:位元組。

sync_out

同步流出量,單位:位元組。

start_time

計量開始時間戳,單位:秒。

end_time

計量截止時間戳記,單位:秒。

region

OSS Bucket所在地區。

process_img

處理映像。

bucket_location

OSS Bucket所在的資料中心,一般格式為oss-<region ID>。

standard_total

標準儲存-總物理容量,單位:位元組。

standard_lrs

標準儲存-本地冗餘-物理容量,單位:位元組。

standard_zrs

標準儲存-同城冗餘-物理容量,單位:位元組。

ia_total

低頻儲存-總物理容量,單位:位元組。

ia_lrs

低頻儲存-本地冗餘-物理容量,單位:位元組。

ia_zrs

低頻儲存-同城冗餘-物理容量,單位:位元組。

ia_total_charged_datasize

低頻儲存-總計費容量,單位:位元組。

ia_lrs_charged_datasize

低頻儲存-本地冗餘-計費容量,單位:位元組。

ia_zrs_charged_datasize

低頻儲存-同城冗餘-計費容量,單位:位元組。

archive_total

Archive Storage-總物理容量,單位:位元組。

archive_lrs

Archive Storage-本地冗餘-物理容量,單位:位元組。

archive_zrs

Archive Storage-同城冗餘-物理容量,單位:位元組。

archive_total_charged_datasize

Archive Storage-總計費容量,單位:位元組。

archive_lrs_charged_datasize

Archive Storage-本地冗餘-計費容量,單位:位元組。

archive_zrs_charged_datasize

Archive Storage-同城冗餘-計費容量,單位:位元組。

coldarchive_total

冷Archive Storage-總物理容量,單位:位元組。

coldarchive_lrs

冷Archive Storage-本地冗餘-物理始容量,單位:位元組。

coldarchive_total_charged_datasize

冷Archive Storage-總計費容量,單位:位元組。

coldarchive_lrs_charged_datasize

冷Archive Storage-本地冗餘-計費容量,單位:位元組。

deepcoldarchive_total

深度冷歸檔-總物理容量,單位:位元組。

deepcoldarchive_lrs

深度冷歸檔-本地冗餘-物理容量,單位:位元組。

deepcoldarchive_total_charged_datasize

深度冷歸檔-總計費容量,單位:位元組。

deepcoldarchive_lrs_charged_datasize

深度冷歸檔-本地冗餘-計費容量,單位:位元組。

reserved_capacity

預留空間-總已使用容量,單位:位元組。

reserved_capacity_lrs

預留空間-本地冗餘-已使用容量,單位:位元組。

reserved_capacity_zrs

預留空間-同城冗餘-已使用容量,單位:位元組。

total_storage

總物理容量,單位:位元組。

total_storage_charged_datasize

總計費容量(不包括標準儲存),單位:位元組。

大量刪除日誌

當您調用DeleteObjects介面時,訪問日誌中會有一條請求記錄。但因為刪除的檔案資訊存放在請求的HTTP Body中,訪問日誌中的object欄位值為短劃線(-)。查看具體的刪除檔案的列表,需要查看大量刪除日誌。大量刪除日誌的欄位及說明如下,可以通過request_id欄位關聯。

欄位名稱

說明

__topic__

日誌主題,固定為oss_batch_delete_log。

bucket

OSS Bucket名稱。

bucket_location

OSS Bucket所在的資料中心,格式為oss-<region ID>。

client_ip

發起請求的IP地址,例如用戶端IP地址、其網路防火牆或Proxy的IP地址。

delta_data_size

OSS Object大小的變化量,如果沒有變化則為0;如果不是上傳請求,則為短劃線(-)。

error_code

OSS返回的錯誤碼。更多資訊,請參見OSS錯誤碼

host

請求訪問網域名稱,例如bucket123.oss-cn-beijing.aliyuncs.com。

http_method

HTTP要求方法,例如POST。

http_status

HTTP請求返回的狀態。

logging_flag

是否開啟定期匯出日誌到OSS Bucket的功能,true表示開啟。

object

請求的OSS Object,格式為URL編碼,查詢時可以使用select url_decode(object)解碼。

object_size

OSS Object的大小,對應請求對象的大小,單位:位元組。

operation

訪問類型。更多資訊,請參見日誌欄位詳情

owner_id

OSS Bucket擁有者的阿里雲帳號ID。

response_body_length

HTTP響應Body的大小,不包括header。

request_length

HTTP請求的大小,包括header,單位:位元組。

referer

請求的HTTP Referer。

request_id

請求ID。

requester_id

要求者的ID,如果匿名訪問則為短劃線(-)。

request_uri

請求的URI,包括query-string,格式為URL編碼,查詢時可以使用select url_decode(request_uri)解碼。

sync_request

同步請求類型。

  • 短劃線(-):一般請求。

  • cdn:CDN回源。

  • lifecycle:設定生命週期規則。

server_cost_time

OSS伺服器處理本次請求的時間,單位:毫秒。

user_agent

HTTP的User-Agent頭,例如curl/7.15.5。

時序監控指標

本文涉及的指標遵循時序資料格式,支援使用PromQL或SQL進行查詢分析。更多資訊,請參見時序資料查詢與分析簡介

指標

單位

說明

標籤

private_net_in_traffic_10s

byte

每10秒內的內網流入流量。

owner_id、region、bucket、storage_type、operation、sync_type

private_net_out_traffic_10s

byte

每10秒內的內網流出流量。

owner_id、region、bucket、storage_type、operation、sync_type

public_net_in_traffic_10s

byte

每10秒內的公網流入流量。

owner_id、region、bucket、storage_type、operation、sync_type

public_net_out_traffic_10s

byte

每10秒內的公網流出流量。

owner_id、region、bucket、storage_type、operation、sync_type

cdn_in_10s

byte

每10秒內的CDN流入流量。

owner_id、region、bucket、storage_type、operation、sync_type

cdn_out_10s

byte

每10秒內的CDN流出流量。

owner_id、region、bucket、storage_type、operation、sync_type

sync_in_10s

byte

每10秒內的同步請求流入流量。

owner_id、region、bucket、storage_type、operation、sync_type

sync_out_10s

byte

每10秒內的同步請求流出流量。

owner_id、region、bucket、storage_type、operation、sync_type

request_cnt_total_10s

Count

每10秒內的請求總數。

owner_id、region、bucket、storage_type、operation、sync_type

write_qps_10s

Count

每10s內的計費PUT、POST、HEAD請求次數。

owner_id、region、bucket、storage_type、operation、sync_type

read_qps_10s

Count

每10秒內的計費GET請求次數。

owner_id、region、bucket、storage_type、operation、sync_type

error_4xx_10s

Count

每10秒內的4xx請求個數。

owner_id、region、bucket、storage_type、operation、sync_type

error_403_10s

Count

每10秒內的403請求個數。

owner_id、region、bucket、storage_type、operation、sync_type

error_404_10s

Count

每10秒內的404請求個數。

owner_id、region、bucket、storage_type、operation、sync_type

error_408_10s

Count

每10秒內的408請求個數。

owner_id、region、bucket、storage_type、operation、sync_type

error_499_10s

Count

每10秒內的499請求個數。

owner_id、region、bucket、storage_type、operation、sync_type

error_5xx_10s

Count

每10秒內的5xx請求個數。

owner_id、region、bucket、storage_type、operation、sync_type

error_503_10s

Count

每10秒內的503請求個數。

owner_id、region、bucket、storage_type、operation、sync_type

success_2xx_10s

Count

每10秒內的2xx請求個數。

owner_id、region、bucket、storage_type、operation、sync_type

success_203_10s

Count

每10秒內203請求個數。

owner_id、region、bucket、storage_type、operation、sync_type

success_3xx_10s

Count

每10秒內的3xx請求個數。

owner_id、region、bucket、storage_type、operation、sync_type

client_latency_10s

millsecond

每10秒內的用戶端延遲。

owner_id、region、bucket、storage_type、operation、sync_type

server_latency_10s

millsecond

每10秒內的服務端延遲。

owner_id、region、bucket、storage_type、operation、sync_type

request_cnt_level4_10s

Count

每10秒內的請求個數,對應的請求檔案大於1 MB。

owner_id、region、bucket、storage_type、operation、sync_type

client_latency_level4_10s

millsecond

每10秒內的用戶端延遲,對應的請求檔案大於1 MB。

owner_id、region、bucket、storage_type、operation、sync_type

server_latency_level4_10s

millsecond

每10秒內的服務端延遲,對應的請求檔案大於1 MB。

owner_id、region、bucket、storage_type、operation、sync_type

request_cnt_level2_10s

Count

每10秒內的請求個數,對應的請求檔案在100 KB~200 KB之間。

owner_id、region、bucket、storage_type、operation、sync_type

client_latency_level2_10s

millsecond

每10秒內的用戶端延遲,對應的請求檔案在100 KB~200 KB之間。

owner_id、region、bucket、storage_type、operation、sync_type

server_latency_level2_10s

millsecond

每10秒內的服務端延遲,對應的請求檔案在100 KB~200 KB之間。

owner_id、region、bucket、storage_type、operation、sync_type

request_cnt_level1_10s

Count

每10秒內的請求個數,對應的請求檔案小於100 KB。

owner_id、region、bucket、storage_type、operation、sync_type

client_latency_level1_10s

millsecond

每10秒內的用戶端延遲,對應的請求檔案小於100 KB。

owner_id、region、bucket、storage_type、operation、sync_type

server_latency_level1_10s

millsecond

每10秒內的服務端的延遲,對應的請求檔案小於100 KB。

owner_id、region、bucket、storage_type、operation、sync_type

request_cnt_level3_10s

Count

每10秒內的請求個數,對應的請求檔案在200 KB~1 MB之間。

owner_id、region、bucket、storage_type、operation、sync_type

client_latency_level3_10s

millsecond

每10秒內的用戶端延遲,對應的請求檔案在200 KB~1 MB。

owner_id、region、bucket、storage_type、operation、sync_type

server_latency_level3_10s

millsecond

每10秒內的服務端延遲,對應的請求檔案在200 KB~1 MB。

owner_id、region、bucket、storage_type、operation、sync_type

error_timeout_10s

Count

每10秒內逾時的請求個數。

owner_id、region、bucket、storage_type、operation、sync_type

delta_add_10s

byte

每10秒內的儲存增量。

owner_id、region、bucket、storage_type、operation、sync_type

delta_del_10s

byte

每10秒內的儲存減量。

owner_id、region、bucket、storage_type、operation、sync_type

top_object_pv_5m

Count

每5分鐘內Top檔案訪問次數。

owner_id、region、bucket、storage_type、object

top_object_bandwidth_out_5m

byte

每5分鐘內Top檔案流出流量。

owner_id、region、bucket、storage_type、object

top_object_bandwidth_in_5m

byte

每5分鐘內Top檔案流入流量。

owner_id、region、bucket、storage_type、object

top_ip_method_pv_5m

Count

每5分鐘內Top IP地址訪問次數。

owner_id、region、bucket、storage_type、operation、client_ip

top_ip_method_bandwidth_out_5m

byte

每5分鐘內Top IP地址流出流量。

owner_id、region、bucket、storage_type、operation、client_ip

top_ip_method_bandwidth_in_5m

byte

每5分鐘內Top IP地址流入流量。

owner_id、region、bucket、storage_type、operation、client_ip

top_ip_storage_pv_5m

Count

每5分鐘內Top IP地址訪問次數。

owner_id、region、bucket、storage_type、client_ip

top_ip_storage_bandwidth_out_5m

byte

每5分鐘內Top IP地址流出流量。

owner_id、region、bucket、storage_type、client_ip

top_ip_storage_bandwidth_in_5m

byte

每5分鐘內Top IP地址流入流量。

owner_id、region、bucket、storage_type、client_ip

top_refer_pv_5m

Count

每5分鐘內Top Refer訪問次數。

owner_id、region、bucket、storage_type、refer

其中,標籤欄位說明如下表所示。

標籤欄位

說明

owner_id

OSS Bucket擁有者的阿里雲帳號ID。

region

OSS Bucket所在地區。

bucket

OSS Bucket名稱。

object

OSS對象名稱。

storage_type

OSS Bucket儲存類型。

operation

訪問類型。更多資訊,請參見附錄:訪問類型

sync_type

同步類型。

client_ip

訪問來源IP地址。

refer

請求的HTTP Refer。

附錄:訪問類型

訪問類型如下表所示。更多資訊,請參見API概覽

操作

說明

AbortMultiPartUpload

斷點上傳-中止。

AppendObject

追加上傳檔案。

CompleteUploadPart

完成斷點上傳。

CopyObject

複製檔案。

DeleteBucket

刪除Bucket。

DeleteLiveChannel

刪除LiveChannel。

DeleteObject

刪除檔案。

DeleteObjects

刪除多個檔案。

ExpireObject

刪除到期Object。

GetBucket

列舉檔案。

GetBucketAcl

擷取Bucket許可權。

GetBucketCors

查看Bucket的CORS規則。

GetBucketEventNotification

擷取Bucket通知配置。

GetBucketInfo

查看Bucket資訊。

GetBucketLifecycle

查看Bucket的Lifecycle配置。

GetBucketLocation

查看Bucket地區。

GetBucketLog

查看Bucket訪問日誌配置。

GetBucketReferer

查看Bucket防盜鏈設定。

GetBucketReplication

查看跨地區複製。

GetBucketReplicationProgress

查看跨地區複製進度。

GetBucketStat

擷取bucket的相關資訊。

GetBucketWebSite

查看Bucket的靜態網站託管狀態。

get_image_exif

擷取圖片的exif資訊。

get_image_info

擷取圖片的長寬等資訊。

get_image_infoexif

擷取圖片的長寬以及exif資訊。

GetLiveChannelStat

擷取LiveChannel狀態資訊。

GetObject

讀取檔案。

GetObjectAcl

擷取檔案存取權限。

GetObjectInfo

擷取檔案資訊。

GetObjectMeta

查看檔案資訊。

GetObjectSymlink

擷取symlink檔案的詳細資料。

GetPartData

擷取斷點檔案塊資料。

GetPartInfo

擷取斷點檔案塊資訊。

GetProcessConfiguration

擷取Bucket圖片處理配置。

GetService

列舉Bucket。

get_style

擷取Bucket樣式。

HeadBucket

查看Bucket資訊。

HeadObject

查看檔案資訊。

InitiateMultipartUpload

初始化斷點上傳檔案。

ListMultiPartUploads

列舉斷時間點事件。

ListParts

列舉斷點塊狀態。

list_style

列舉Bucket的樣式。

PostObject

表單上傳檔案。

PostProcessTask

提交相關的資料處理,例如截圖等。

PostVodPlaylist

建立LiveChannel點播列表。

ProcessImage

圖片處理。

PutBucket

建立Bucket。

PutBucketCors

設定Bucket的CORS規則。

PutBucketLifecycle

設定Bucket的Lifecycle配置。

PutBucketLog

設定Bucket訪問日誌。

PutBucketWebSite

設定Bucket靜態網站託管模式。

PutLiveChannel

建立LiveChannel。

PutLiveChannelStatus

設定LiveChannel狀態。

PutObject

上傳檔案。

PutObjectAcl

修改檔案存取權限。

PutObjectSymlink

建立symlink檔案。

put_style

建立Bucket樣式。

RedirectBucket

bucket endpoint重新導向。

RestoreObject

解凍檔案。

UploadPart

斷點上傳檔案。

UploadPartCopy

複製檔案塊。