Description
IsLogging: false stops delivery from this trail, including a multi-Region trail. Other active trails and the separate 90-day management event history continue to record their usual events.
Potential impact
Investigators may lack data events or historical records for the period when this trail was stopped.
Remediation
Set IsLogging: true. Select the required events and Regions, restrict access to the logs and set retention. Perform an operation included by the trail, verify its event in S3 and test any alerts that depend on it.
Examples
Supply AuditBucket and a bucket policy that permits CloudTrail to write its logs.
Before
Resources:
AuditTrail:
Type: AWS::CloudTrail::Trail
Properties:
S3BucketName: !Ref AuditBucket
IsLogging: false
IsMultiRegionTrail: true
After
Resources:
AuditTrail:
Type: AWS::CloudTrail::Trail
Properties:
S3BucketName: !Ref AuditBucket
IsLogging: true
IsMultiRegionTrail: true
EnableLogFileValidation: true
EnableLogFileValidation: true also delivers digests for checking file integrity. Use bucket access controls to protect the logs from deletion or changes.