Event type
CloudTrail Delete Trail Event
Management API call to delete a CloudTrail trail
AWS CloudTrail DeleteTrail management event
Overview
What this event covers
Records when an AWS CloudTrail trail is deleted via the DeleteTrail API. The event is the native CloudTrail management record. DeleteTrail returns an empty body, so responseElements is null.
When generated
- ›When a user or service deletes a CloudTrail trail via AWS Console
- ›When DeleteTrail API is called programmatically
- ›During automated cleanup processes
- ›When trails are removed due to cost optimization
Security relevance
HighCompliance
Frequency notes
Low frequency event - trail deletions are typically infrequent administrative actions
Resources
Docs and tools
Generation
Configuration
- Base frequency
- 5 events/hour
- Time patterns
- business_hours night_hours weekend
- Business hours
- 2.0x
- Night hours
- 0.3x
- Weekend
- 0.1x
Schema
Field definitions
Field reference for this event type — types, requirements, examples, and allowed values.
eventVersion
CloudTrail event format version
Source: 1.08 or 1.10, the versions in published DeleteTrail records. Both include eventCategory and tlsDetails.
1.08-
1.08DeleteTrail sample with TLSv1.2 -
1.10DeleteTrail sample with TLSv1.3
userIdentity.principalId
Unique identifier for the principal
Source: IAM user is AIDA plus 17 characters. Assumed role is AROA plus 17 characters, a colon, and the session name.
AIDAYTOGP2RLEHRX5YWNVeventName
The CloudTrail API operation name
Source: Static value
DeleteTrailrequestParameters.name
Name of the trail sent to DeleteTrail. The API also accepts a trail ARN. Published records use the trail name.
Source: Random selection from common trail names
redatomictesttrailresponseElements
DeleteTrail returns HTTP 200 with an empty body, so this is null on success and on error.
Source: Static null
nullerrorCode
Error code when the delete fails
Source: Random selection when an error occurs
TrailNotFoundException-
TrailNotFoundExceptionThe named trail does not exist -
InvalidTrailNameExceptionThe trail name is not valid -
AccessDeniedThe caller is not allowed to delete the trail
awsRegion
Region where DeleteTrail was called. The call must be made in the trail home region.
Source: Random commercial region
us-west-2sourceIPAddress
IP address of the API caller
Source: Public address. vpcEndpointId is omitted.
192.184.242.57tlsDetails
TLS details for a direct client call
Source: tlsVersion 1.2 uses an ECDHE-RSA cipher. tlsVersion 1.3 uses a TLS_AES cipher.
{"tlsVersion": "TLSv1.2", "cipherSuite": "ECDHE-RSA-AES128-GCM-SHA256", "clientProvidedHostHeader": "cloudtrail.us-west-2.amazonaws.com"}managementEvent
DeleteTrail is a management event
Source: Static true
true