Fix it
CloudTrail is not logging, or GuardDuty is switched off
Without a working trail there is no record of who changed what. Without GuardDuty, suspicious activity goes unseen. This is how to check both.
AWS details read from the AWS docs on 28 November 2026. Each one links to its page.
What AWS says
- CloudTrail event history shows the past 90 days of management events in an AWS Region. For an ongoing record, create a trail or an event data store. AWS docs
- GuardDuty identifies suspicious and potentially malicious activity in your AWS environment. It is a Regional service, and AWS recommends enabling it in all supported Regions. AWS docs
- By default, log data is stored in CloudWatch Logs indefinitely. You can change the retention of each log group at any time. AWS docs
Find it in your account
List your trails and check each one is logging, then see which regions have a GuardDuty detector. AWS docs
Run this
aws cloudtrail describe-trails
aws cloudtrail get-trail-status --name TRAIL
aws guardduty list-detectors --region REGIONFix it
- Start logging on the trail. Also check that its S3 bucket policy lets CloudTrail write to it. AWS docsRun this
aws cloudtrail start-logging --name TRAIL - Enable GuardDuty in each region you use. You can have one detector per account per region. AWS docsRun this
aws guardduty create-detector --enable --region REGION - Give log groups that never expire a retention period. AWS docsRun this
aws logs put-retention-policy --log-group-name NAME --retention-in-days 90
What OpsAgent flags
OpsAgent runs check 06 against your AWS account every night and flags:
- Critical: no trail is both logging and able to write to its bucket.
- High: GuardDuty is off in one or more regions.
- Medium: it could not confirm any trail is logging, because the read role lacks cloudtrail:GetTrailStatus.
- Low: a log group that never expires, with its stored size and estimated monthly cost.
What OpsAgent does not do here
- It does not read your logs or CloudTrail events, only whether logging and detection are on.
- It never starts a trail or enables GuardDuty. It connects read-only; you run the commands above.
Get your ops teammate.
Start a 14-day free trial. Card required, cancel any time.
Start free trial