阿里云数据库文件存储(DBFS)已与阿里云 ActionTrail集成,您可以在 ActionTrail 中查看和检索用户行为日志,同时通过ActrionTrail 将日志投递到日志服务 LogStore 或指定的 OSS Bucket 中,满足实时审计、问题回溯分析等需要。
ActionTrail 中记录的DBFS操作日志
DBFS的操作审计日志主要包含的是API事件,其中OpenAPI 事件在ActionTrail中记录的eventType取值为 ApiCall,其含义可以参考DBFS的API概览。
部分API事件尚未包含在上述的API说明文档中,这些尚未包含在上述的API说明文档中,这些事件的含义参考如下:
事件类型 | 事件名称 | 事件含义 |
---|---|---|
ApiCall | GetServiceLinkedRole | 查询服务关联角色 |
ApiCall | CreateServiceLinkedRole | 创建服务关联角色 |
DBFS的日志样例
下面展示了一个 ActionTrail 中记录的DBFS实例创建日志,该条日志记录了CreateDbfs操作记录的详细信息:
{
"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"
}
文档内容是否对您有帮助?