Azure 资源日志事件的语义约定

状态: 开发中

本文档定义了发出 Azure 资源日志事件的仪器的语义约定。

Azure 资源日志

状态: 开发中

事件名称必须是 azure.resource.log

描述 Azure 资源日志事件,有关更多详细信息,请参阅 Azure 资源日志顶级架构

Attributes

Stability需求级别Value Type描述Example Values
azure.service.request.idDevelopment推荐字符串服务请求的唯一标识符。它由 Azure 服务生成并随响应返回。00000000-0000-0000-0000-000000000000
cloud.resource_idDevelopment推荐字符串记录所针对的 完整 Azure 资源 IDarn:aws:lambda:REGION:ACCOUNT_ID:function:my-function; //run.googleapis.com/projects/PROJECT_ID/locations/LOCATION_ID/services/SERVICE_ID; /subscriptions/<SUBSCRIPTION_GUID>/resourceGroups/<RG>/providers/Microsoft.Web/sites/<FUNCAPP>/functions/<FUNC>

正文字段

⚠️ 正文字段将在语义约定工具支持复杂属性后移至复杂属性(参见 #1870)。

字段名称Stability需求级别Value Type描述Example Values
categoryDevelopment推荐字符串日志条目的 Azure 类别。AuditEventGatewayLogsApplicationGatewayAccessLog
correlation.idDevelopment推荐字符串日志条目的相关 ID。607964b6-41a5-4e24-a5db-db7aab3b9b34
durationDevelopment推荐int操作持续时间(以毫秒为单位)。1000
identityDevelopment选择加入undefined“描述执行操作的用户或应用程序身份的 JSON 块。” [1]
operation.nameDevelopment推荐字符串操作的名称。SecretGetMicrosoft.ApiManagement/GatewayLogsApplicationGatewayAccess
operation.versionDevelopment推荐字符串操作的版本。1.0
propertiesDevelopment推荐undefinedAzure 资源日志中提供的属性。
result.descriptionDevelopment推荐字符串结果的描述。操作成功操作失败
result.signatureDevelopment推荐字符串与记录的事件关联的子状态。OK
result.typeDevelopment推荐字符串与记录的事件关联的状态。SucceededFailedStarted
tenant.idDevelopment有条件地必需 [2]字符串此事件所关联的 Active Directory 租户的租户 ID。00000000-0000-0000-0000-000000000000

[1]: 通常,此字段包含来自 Active Directory 的授权和声明或 JWT 令牌。

警告

此字段包含敏感(PII)信息。

[2] tenant.id: 如果事件与 Active Directory 租户相关联。