通過本文您可以瞭解配置審計的資源不合規事件投遞到Log ServiceSLS的內容樣本和主要參數說明。
內容樣本
在單帳號模式下,阿里雲帳號120886317861****中ECS執行個體未使用指定鏡像的不合規事件投遞到Log ServiceSLS,內容樣本如下:
{
"annotation": {
"configuration": "aliyun_3_x64_20G_alibase_20250117.vhd",
"desiredValue": "03333",
"operator": "StringIn",
"property": "$.ImageId"
},
"riskLevel": "Warning",
"dataType": "NonCompliantNotification",
"evaluationResultIdentifier": {
"orderingTimestamp": 1748917125166,
"evaluationResultQualifier": {
"resourceId": "i-2ze1j7ocdg95bd5z4p**",
"configRuleName": "ECS執行個體使用指定鏡像",
"sourceIdentifier": "ecs-instance-imageId-check",
"configRuleId": "cr-5a8f4fbef2bc00e5aa**",
"captureTime": 1748917125166,
"resourceName": "launch-advisor-20250530",
"compliancePackId": "cp-5a8f4fbef2bc00e5aa**",
"configRuleArn": "acs:config::141339776561****:rule/cr-5a8f4fbef2bc00e5aa**",
"regionId": "cn-beijing",
"resourceArn": "acs:ecs:cn-beijing:141339776561****:instance/i-2ze1j7ocdg95bd5z4p**",
"resourceGroupId": "rg-acfmykd63gtpfpa",
"resourceOwnerId": 1413397765616316,
"resourceType": "ACS::ECS::Instance"
}
},
"eventType": "ResourceCompliance",
"invokingEventMessageType": "Manual",
"complianceType": "NON_COMPLIANT",
"accountId": "141339776561****",
"lastNonCompliantRecordTimestamp": "1748916884628",
"requestId": "2e05d4cf-37e4-4a41-bff2-8f1932bf9a**",
"eventName": "NonCompliant",
"notificationCreationTime": "1748917125362"
}參數說明
資源不合規事件投遞到Log ServiceSLS的主要參數說明如下表所示。
參數 | 說明 |
accountId | 資源歸屬的帳號ID。配置審計支援如下帳號類型:
|
annotation | 資源不合規描述資訊。 |
complianceType | 合規類型。取值為 |
dataType | Log ServiceSLS的接收內容。取值:
|
evaluationResultIdentifier | 資源合規評估的詳細資料。 |
eventName | 事件名稱。取值為 |
eventType | 事件類型。取值:
|
invokingEventMessageType | 規則的觸發機制。取值:
|
notificationCreationTime | 建立通知的時間戳記。 |
riskLevel | 規則風險等級。取值:
|