AWS CloudHSM writes audit logs for certificate storage operations that modify data to a separate Amazon CloudWatch Events log stream within your cluster's CloudWatch log group. This log stream is named for the cluster, not for a specific HSM within the cluster.
For information about accessing audit logs in CloudWatch, see Working with Amazon CloudWatch Logs and AWS CloudHSM Audit Logs.
Log entry fields
object_handle
-
The unique identifier of the certificate object.
op_code
-
The operation performed or attempted. Possible values:
CreateObject
DestroyObject
SetAttributeValues
response
-
OK
if the operation succeeded, or one of the following error types:DuplicateAttribute
InvalidAttributeValue
ObjectNotFound
MaxObjectsReached
InternalFailure
attributes
-
The attributes modified, if any.
timestamp
-
The time when the operation occurred, in milliseconds since the Unix epoch.
Audit log examples
CreateObject example
{
"object_handle": 463180677312929947,
"op_code": "CreateObject",
"response": "OK",
"attributes": null,
"timestamp": 1725482483671
}
DestroyObject example
{
"object_handle": 463180677312929947,
"op_code": "DestroyObject",
"response": "OK",
"attributes": null,
"timestamp": 1725482484559
}
SetAttributeValues example
{
"object_handle": 463180678453346687,
"op_code": "SetAttributeValues",
"response": "OK",
"attributes": [
"Label"
],
"timestamp": 1725482488004
}
Unsuccessful CreateObject example
{
"object_handle": null,
"op_code": "CreateObject",
"response": "MaxObjectsReached",
"attributes": null,
"timestamp": 1726084937125
}