All Products
Search
Document Center

Key Management Service:Log fields

Last Updated:Mar 31, 2026

KMS access logs contain the following fields.

Field reference

Field nameDescriptionExample
access_key_fingerprintThe SHA256 digest of the application access point (AAP) client key's public key. Empty when identity_type is a RAM identity.sha256-8cf3a6ad2288597d8ba7dd93970403d22796c7c1a0ab6ee8cbe1380e18e****
access_key_idThe AccessKey ID (RAM identity) or the AAP client key ID (AAP identity).KAAP.38742edd-1992-4048-82fa-940b8a90****
account_idThe UID of the Alibaba Cloud account used to access the KMS instance (RAM identity), or the UID of the Alibaba Cloud account to which the AAP belongs (AAP identity). Empty if the AAP is not found.119285303511****
api_nameThe name of the KMS Instance API operation. For a full list, see List of operations by function.GenerateDataKey
api_versionThe version of the KMS Instance API.dkms-gcs-0.2
client_ipThe IP address of the client.192.168.XX.XX
durationThe request processing latency, in milliseconds.1.381
error_messageThe error message.The ApiName "<apiname>" is invalid.
identity_typeThe identity type. Valid values: cloud-account (Alibaba Cloud account), ram-user (RAM user), ram-role (RAM role), aap (AAP client key).ram-user
instance_idThe ID of the KMS instance.kst-gzz63ff0d55h5vdas****
levelThe log level. Always INFO.INFO
principal_idThe UID of the RAM identity (cloud account, RAM user, or RAM role), or the name of the AAP. Empty if the AAP is not found.119285301584****
region_idThe region where the KMS instance is deployed.cn-hangzhou
request_idThe unique identifier of the request.2753f2f4-efb8-49c8-9817-c60cfe286c2d
resource_idThe key ID or secret name associated with the request.key-hzz62f1cb66fa42qo* ***
resource_parametersAdditional resource details, including the key version (key_version_id), the index in the hardware security module (HSM) (index), and the key ID (key_id). If resource_id is a secret, key_id identifies the key used to encrypt that secret. If resource_id is a key, key_id equals resource_id. index has a value only for hardware-protected keys.{"key_id":"","key_version_id":"key-gzz64675a2ekoi4qj**-njscfe**","index":""}
share_gateway_api_nameThe name of the API operation when the request is made through a KMS endpoint. For a full list, see List of operations by function. Empty for requests not made through a KMS endpoint.GenerateDataKey
status_codeThe HTTP status code of the response.200
timeThe time when the request starts to be processed. The value is a UNIX timestamp.2023-07-04T01:52:55Z
user_idThe UID of the Alibaba Cloud account to which the KMS instance belongs.119285303511****
useragentThe information about the client.AlibabaCloud (darwin; amd64) Golang/1.15.3 Core/0.01 TeaDSL/1
versionThe version of the log format.V1.0

Identity type and field values

The identity_type field determines what values appear in the identity-related fields. Use the following table to understand the combinations.

identity_type valueIdentityaccess_key_idaccess_key_fingerprintaccount_idprincipal_id
cloud-accountAlibaba Cloud accountAccessKey IDEmptyAccount UIDAccount UID
ram-userRAM userAccessKey IDEmptyAccount UIDRAM user UID
ram-roleRAM roleAccessKey IDEmptyAccount UIDRAM role UID
aapAAP client keyAAP client key IDSHA256 digest of client key public keyAccount UID of AAP owner (empty if AAP not found)AAP name (empty if AAP not found)