我正在了解Azure中的日志,特别是从ADSL Gen2数据湖获得的日志。确实,我无法获得对数据湖的更改的登录/ userid?
我有这些田地
UTC AuthenticationType AccountName位置协议OperationName AccountName StatusCode StatusText DurationMs ServerLatencyMs Uri CorrelationId SchemaVersion OperationVersion AuthenticationHash UserAgentHeader ClientRequestId UserAgentHeader ClientRequestId ServiceType RequestHeaderSize RequestHeaderSize UTC分类Type
AuthenticationType被称为AccountKey
CallerIpAddress是用户的IP地址。
但是,我正在寻找的是userID,比如123@domain.com或类似的。那么我如何包括描述操作如何进行身份验证的字段。
清除(在KarthikBhyresh-MT输入了一些信息之后)
我有自己的ADSL,在ADSL >诊断设置(经典)下在蔚蓝门户中玩,我启用了Blob日志版本2.0、读/写/删除/删除数据(正如建议的那样)。
然后,我使用上传一些文件,再次删除一些文件,并且通常会做一些日志记录
在ADSL >日志(预览)下的蔚蓝门户中,我读取了StorageBlobLogs
如果我在RequesterUpn不为空的地方运行最简单的查询,我就会得到一个甚至AuthenticationType是OAuth的用户名。这是对服务的登录。
但是当我找到OperationName: DeleteFile时,我不知道是谁做的,我有autenticationHash(1)和CallerIpAdress(2),我可以从OAuth日志事件中查找IpAdress,将删除操作放到一个名称中。

发布于 2021-11-01 12:44:27
发布于 2021-10-30 05:42:08
如果您在ADLS帐户中打开了下面的详细信息

如有需要,可选择路由

我现在可以从存储有关ADLS的日志中看到。
包含upn的样本记录。您可以在identity.upn上找到它,其中OAuth是使用的授权,它支持存储分析日志的版本2.0。
{
"time": "2021-10-30T05:12:17.3923930Z",
"resourceId": "/subscriptions/<Subscription-id>/resourceGroups/<resource-group-name>/providers/Microsoft.Storage/storageAccounts/<storage-account-name>/blobServices/default",
"category": "StorageRead",
"operationName": "GetBlobServiceProperties",
"operationVersion": "2020-08-04",
"schemaVersion": "1.0",
"statusCode": 200,
"statusText": "Success",
"durationMs": 712,
"callerIpAddress": "<ip-address><port>",
"correlationId": "fced83b0-xxxx-xxxx-xxxx-cd769c000000",
"identity": {
"type": "OAuth",
"tokenHash": "E098F823BC1BE1D9AC73F22F82xxxxxxxxxxxxxxxxxxxx5537E013A5E6BDF71E",
"requester": {
"appId": "691458b9-xxxx-xxxx-xxxx-ed83a7f1b41c",
"audience": "https://storage.azure.com/",
"objectId": "b1c5060f-xxxx-xxxx-xxxx-31cce61160f4",
"tenantId": "72f988bf-xxxx-xxxx-xxxx-2d7cd011db47",
"tokenIssuer": "https://sts.windows.net/72f988bf-xxxx-xxxx-xxxx-2d7cd011db47/",
"upn": "user@domain.com"
}
},
"location": "East US",
"properties": {
"accountName": "<storage-account-name>",
"userAgentHeader": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4638.54 Safari/537.36 Edg/95.0.1020.30",
"serviceType": "blob",
"objectKey": "/<storage-account-name>",
"serverLatencyMs": 711,
"requestHeaderSize": 2713,
"responseHeaderSize": 282,
"responseBodySize": 802,
"tlsVersion": "TLS 1.2"
},
"uri": "https://<storage-account-name>.blob.core.windows.net:443/?restype=service&comp=properties&_=1635xxxx35961",
"protocol": "HTTPS",
"resourceType": "Microsoft.Storage/storageAccounts/blobServices"
}有关更多细节,请参考正式的MS 存储分析日志格式文档。
"category": "StorageWrite"的示例记录


https://stackoverflow.com/questions/69768559
复制相似问题