操作日志
更新時間:
阿里云數(shù)據(jù)庫文件存儲(DBFS)已與阿里云 ActionTrail集成,您可以在 ActionTrail 中查看和檢索用戶行為日志,同時通過ActrionTrail 將日志投遞到日志服務(wù) LogStore 或指定的 OSS Bucket 中,滿足實(shí)時審計、問題回溯分析等需要。
ActionTrail 中記錄的DBFS操作日志
DBFS的操作審計日志主要包含的是API事件,其中OpenAPI 事件在ActionTrail中記錄的eventType取值為 ApiCall,其含義可以參考DBFS的API概覽。
部分API事件尚未包含在上述的API說明文檔中,這些尚未包含在上述的API說明文檔中,這些事件的含義參考如下:
事件類型 | 事件名稱 | 事件含義 |
---|---|---|
ApiCall | GetServiceLinkedRole | 查詢服務(wù)關(guān)聯(lián)角色 |
ApiCall | CreateServiceLinkedRole | 創(chuàng)建服務(wù)關(guān)聯(lián)角色 |
DBFS的日志樣例
下面展示了一個 ActionTrail 中記錄的DBFS實(shí)例創(chuàng)建日志,該條日志記錄了CreateDbfs操作記錄的詳細(xì)信息:
{
"eventId": "88593595-A78B-42C6-A7C9-30EAEBC18C60",
"eventVersion": 1,
"responseElements": {
"RequestId": "88593595-A78B-42C6-A7C9-30EAEBC18C60",
"FsId": "dbfs-vaaBtQEv******a3XKDmJA"
},
"eventSource": "dbfs.cn-hangzhou.aliyuncs.com",
"requestParameters": {
"AcsHost": "dbfs.cn-hangzhou.aliyuncs.com",
"Category": "standard",
"ZoneId": "cn-zhangjiakou-a",
"RequestId": "88593595-A78B-42C6-A7C9-30EAEBC18C60",
"FsName": "dbfs-test-137",
"AcsProduct": "DBFS",
"SizeG": 120,
"PerformanceLevel": "PL1",
"RegionId": "cn-hangzhou",
"HostId": "dbfs.cn-hangzhou.aliyuncs.com"
},
"sourceIpAddress": "42.120.XX.XX",
"userAgent": "AlibabaCloud (Mac OS X; x86_64) Java/1.8.0_151-b12 Core/4.4.5 HTTPClient/ApacheHttpClient",
"eventType": "ApiCall",
"referencedResources": {
"ACS::DBFS::DbfsInstance": [
"dbfs-vaaBtQEv******a3XKDmJA"
]
},
"userIdentity": {
"accessKeyId": "LTAIZU3TEvYJ****",
"sessionContext": {
"attributes": {
"mfaAuthenticated": "false"
}
},
"accountId": "135234593004****",
"principalId": "135234593004****",
"type": "root-account",
"userName": "root"
},
"serviceName": "DBFS",
"additionalEventData": {
"Scheme": "http"
},
"apiVersion": "2020-04-18",
"requestId": "88593595-A78B-42C6-A7C9-30EAEBC18C60",
"eventTime": "2020-12-16T08:31:29Z",
"isGlobal": false,
"acsRegion": "cn-hangzhou",
"eventName": "CreateDbfs"
}
文檔內(nèi)容是否對您有幫助?