Handling errors
If a trail cannot send audit logs to the destination object, the trail status will change to Error
. This guide contains recommendations on how to recover the trail.
Note
A few minutes after the error cause is removed, the trail status will change to Active
. All audit logs will be uploaded to the destination object.
Object Storage bucket
ACCESS_DENIED
- Make sure the service account used by the trail to upload audit logs to the bucket is assigned the
storage.uploader
or a higher role. - Check the bucket access control list (ACL) and bucket policy and make sure they contain no rules that disable the service account to write data to the bucket.
BUCKET_QUOTA_EXCEEDED
Increase the bucket size and delete the objects you do not need.
BUCKET_CLOUD_QUOTA_EXCEEDED
Contact support
BUCKET_NOT_FOUND
Check the bucket specified in the trail settings. If the bucket was deleted:
-
Create a new bucket with the same name as that specified in the trail settings.
You can also change the trail settings by specifying a different bucket under Destination.
-
If the bucket is encrypted with the Key Management Service key, grant the
kms.keys.decrypter
role for the key to the service account used by the trail to upload audit logs to the bucket.
UNKNOWN or INTERNAL_ERROR
Contact support