[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7A553R2MS1GXM449XR6P39S":3,"skill-same:01M7A553R2MS1GXM449XR6P39S":149},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":45,"commitSha":46,"skillDirectory":47,"forksCount":48,"repositoryHtmlUrl":49,"repositoryHomepageUrl":6,"ownerHtmlUrl":50,"ownerBlogUrl":6,"ownerDescription":51,"updatedAt":52,"install":53,"resources":66},"01M7A553R2MS1GXM449XR6P39S","cloudtrail-missing-events-troubleshooter",null,"Diagnoses AWS CloudTrail missing-events incidents across eleven failure categories: trail logging inadvertently disabled (stop-logging, IaC that omitted start-logging), S3 bucket policy missing cloudtrail.amazonaws.com write permission, organization trail vs member account trail overlap (org trail shadows member), management events vs data events vs Insight events filtering (data events must be explicitly enabled), read-only vs write-only event selector mismatch, multi-region trail vs single-region scope, log file validation (S3 digest integrity failures), CloudWatch Logs delivery delay beyond the 5-15 minute window, CloudTrail Lake event data store query issues, AWS service not logging (not all services in all regions), event source filtering \u002F log file prefix errors, and KMS key disabled preventing log encryption. Walks symptoms to a verified root cause with evidence-backed probes and emits ROOT_CAUSE_IDENTIFIED or INSUFFICIENT_DATA.","jhkchan\u002Faws-agent-skills","jhkchan","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F1083902?v=4","01M7A2SVQYP9GQTPTDXP5JKYQ4","Jacky Chan","01M7A2SVS117YWCTZABB75HZR1",4,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fcloudtrail-missing-events-troubleshooter\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: cloudtrail-missing-events-troubleshooter\ndescription: 'Diagnoses AWS CloudTrail missing-events incidents across eleven failure categories: trail logging inadvertently disabled (stop-logging, IaC that omitted start-logging), S3 bucket policy missing cloudtrail.amazonaws.com write permission, organization trail vs member account trail overlap (org trail shadows member), management events vs data events vs Insight events filtering (data events must be explicitly enabled), read-only vs write-only event selector mismatch, multi-region trail vs single-region scope, log file validation (S3 digest integrity failures), CloudWatch Logs delivery delay beyond the 5-15 minute window, CloudTrail Lake event data store query issues, AWS service not logging (not all services in all regions), event source filtering \u002F log file prefix errors, and KMS key disabled preventing log encryption. Walks symptoms to a verified root cause with evidence-backed probes and emits ROOT_CAUSE_IDENTIFIED or INSUFFICIENT_DATA.'\nlicense: Apache-2.0\ncompatibility: Agent runtime that reads SKILL.md (Claude Code, Cursor, Windsurf, Codex, Gemini). Offline symptom classification works from pasted error messages and describe-trails \u002F get-trail-status \u002F get-event-selectors JSON. Live-account diagnosis uses aws cloudtrail describe-trails, get-trail-status, get-event-selectors, get-insight-selectors, lookup-events, aws s3api get-bucket-policy, get-bucket-location, aws kms describe-key, aws organizations list-delegated-administrators, describe-organization...\nmetadata:\n  domain: aws-cloudops\n  complexity: medium\n  requires_llm: 'true'\n  phase: '2'\n  supports_pipeline: 'true'\n  entry_point: 'false'\n  family: Governance\n  task_type: troubleshoot\n  skill_class: capability\n  lifecycle_status: active\n  verdict_shape: ROOT_CAUSE_IDENTIFIED | INSUFFICIENT_DATA\n  when_to_use: Diagnosing why CloudTrail events are missing — a specific API call is not appearing in lookup-events, the S3 bucket is not receiving log files, an organisation trail is not logging a member account, data events (S3 \u002F Lambda \u002F DynamoDB) are absent despite the trail being IsLogging true, CloudTrail Insights is silent, log file validation digest is failing, CloudWatch Logs delivery is delayed, CloudTrail Lake query returns empty, a regional service is not logging, or KMS-disabled log encryption is blocking delivery. Use whenever the symptom is \"events that should be in CloudTrail are not\".\n  when_not_to_use: Steady-state CloudTrail posture audits (use cloudtrail-org-trail-auditor), IAM policy authoring for the CloudTrail service role (use iam-least-privilege-advisor), CloudTrail Lake event-data-store provisioning (use cloudtrail-lake-operator), Security Hub finding triage (use securityhub-finding-troubleshooter), or CloudWatch Logs ingestion from non-CloudTrail sources. This skill diagnoses missing-events incidents; it does not audit steady-state configuration posture or provision new trails.\n  activation_triggers: CloudTrail missing events, CloudTrail events not appearing, CloudTrail trail not logging, CloudTrail IsLogging false, CloudTrail stop-logging, CloudTrail S3 bucket policy, CloudTrail bucket policy missing cloudtrail.amazonaws.com, CloudTrail data events missing, CloudTrail S3 data events, CloudTrail Lambda data events, CloudTrail management events, CloudTrail Insights not firing, CloudTrail read-only events, CloudTrail write-only events, CloudTrail event selector, CloudTrail multi-region trail, CloudTrail single-region, CloudTrail log file validation, CloudTrail digest, CloudTrail CloudWatch Logs delivery delay, CloudTrail Lake empty query, CloudTrail KMS key disabled, CloudTrail log encryption blocked, CloudTrail org trail not logging member, CloudTrail log file prefix, CloudTrail service not logging, troubleshoot CloudTrail missing events\n  invocation_schema: 'Input: either (a) a symptom description (trail name, the missing event source or eventName, any error strings from the console), optionally paired with describe-trails \u002F get-trail-status \u002F get-event-selectors output, OR (b) a TrailName plus caller context (region, expected event) for live-account diagnosis. Output: a deterministic TARGET \u002F VERDICT \u002F ROOT_CAUSE \u002F LAYER \u002F EVIDENCE \u002F REMEDIATION block where VERDICT ∈ {ROOT_CAUSE_IDENTIFIED, INSUFFICIENT_DATA} and LAYER ∈ {TRAIL_DISABLED, BUCKET_POLICY_BLOCKING, ORG_TRAIL_SHADOWS_MEMBER, DATA_EVENTS_NOT_ENABLED, EVENT_SELECTOR_READONLY, MULTI_REGION_SCOPE_GAP, LOG_FILE_VALIDATION_FAILED, CW_LOGS_DELIVERY_DELAYED, LAKE_EDS_QUERY_ISSUE, SERVICE_NOT_IN_REGION, KMS_KEY_DISABLED, LOG_FILE_PREFIX_ERROR, UNKNOWN}.'\n  invocation_example: \"# Minimal valid input (offline symptom classification):\\nSymptom: \\\"CloudTrail trail prod-org-trail shows IsLogging true but S3 GetObject events from account 222222222222 are not\\nappearing in lookup-events for the last 24 hours.\\\"\\nTrailName: prod-org-trail\\nIsOrganizationTrails: true\\nIsLogging: true\\nRegions: multi-region (us-east-1 home)\\nEventSelectors:\\n  - ManagementEvents: Source = aws.amazonaws.com, ReadWriteType = All\\n  - DataEvents: (none configured)\\nExpectedEventSource: s3.amazonaws.com\\nExpectedEventName: GetObject\\nCallerAccount: 222222222222\"\n  version: 0.1.0\n  author: Jacky Chan — AWS Community Builder\n  keywords: CloudTrail, audit logging, missing events, trail not logging, trail disabled, stop-logging, S3 bucket policy, cloudtrail.amazonaws.com, organization trail, member account trail, org trail shadows member, management events, data events, S3 data events, Lambda data events, DynamoDB data events, CloudTrail Insights, read-only events, write-only events, event selector, advanced event selector, multi-region trail, single-region trail, log file validation, S3 digest, CloudWatch Logs delivery, CloudTrail Lake, event data store, KMS key disabled, log encryption, log file prefix, AWS service not logging, troubleshooting\n  tags: cloudtrail, governance, troubleshoot, missing-events, audit, compliance, org-trail, event-selectors\n---\n\n# CloudTrail Missing Events Troubleshooter\n\n## Quick start\n\n- **Symptom → layer map (the first plausible match drives the first\n  probe):** `get-trail-status` returns `IsLogging: false` →\n  TRAIL_DISABLED; `IsLogging: true` but S3 has no new log files →\n  BUCKET_POLICY_BLOCKING or KMS_KEY_DISABLED; specific data-plane\n  API (GetObject, InvokeFunction) missing →\n  DATA_EVENTS_NOT_ENABLED; org trail logs management account but\n  not a member → ORG_TRAIL_SHADOWS_MEMBER; only one region's\n  events appear → MULTI_REGION_SCOPE_GAP; lookup-events shows\n  events but CloudWatch Logs is empty → CW_LOGS_DELIVERY_DELAYED;\n  CloudTrail Lake query returns empty → LAKE_EDS_QUERY_ISSUE;\n  service not appearing at all → SERVICE_NOT_IN_REGION.\n- **Always verify with a probe, never guess.** Each layer has a\n  single command that proves or disproves it. A\n  ROOT_CAUSE_IDENTIFIED verdict requires positive evidence — a\n  failing probe that matches the symptom — not a process of\n  elimination that \"must be the bucket policy.\"\n- **The three rules every senior CloudTrail engineer keeps in\n  head:** (1) management events are default-on, but data events\n  (S3\u002FLambda\u002FDynamoDB data-plane) must be **explicitly enabled**\n  via an event selector; (2) an organization trail **shadows**\n  member-account trails — a member trail stops delivering as soon\n  as the org trail is created in the management account; (3) the\n  S3 bucket policy must **explicitly allow\n  `cloudtrail.amazonaws.com`** the `s3:GetBucketAcl`,\n  `s3:PutObject` (with the `s3:x-amz-acl: bucket-owner-full-control`\n  condition), and `s3:ListBucket` actions, or no log files land.\n- **`IsLogging: true` does NOT mean events are delivering.** A\n  trail can report `IsLogging: true` while the S3 bucket policy\n  silently rejects PutObject from the CloudTrail service principal.\n  The managed service does not fail the trail on bucket-policy\n  rejection — it keeps retrying. Always cross-reference\n  `LatestDeliveryTime` against the wall clock.\n- **INSUFFICIENT_DATA is acceptable.** Missing-events incidents\n  frequently present with partial telemetry (no CloudTrail event\n  for the CloudTrail config change itself, no S3 access logs). If\n  a failing probe cannot be obtained, emit INSUFFICIENT_DATA with\n  the specific missing inputs — do not declare a verdict on\n  inference alone.\n\n## Mindset\n\n> Mindset deep-dive moved verbatim to [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md) — load on demand.\n\n## Quick reference — symptom triage table\n\n| Symptom phrase \u002F error | Layer | First probe |\n|---|---|---|\n| `get-trail-status` returns `IsLogging: false` | TRAIL_DISABLED | `get-trail-status --name \u003Ctrail>`; `lookup-events` for `StopLogging` |\n| `IsLogging: true` but no new S3 objects in last hour | BUCKET_POLICY_BLOCKING \u002F KMS_KEY_DISABLED | `s3api get-bucket-policy`; `s3 ls` for recent objects |\n| Specific data-plane API (GetObject, InvokeFunction) missing | DATA_EVENTS_NOT_ENABLED | `get-event-selectors`; check `DataEvents` array |\n| `ReadWriteType: ReadOnly` but expecting write events | EVENT_SELECTOR_READONLY | `get-event-selectors`; check `ReadWriteType` |\n| Org trail exists but member account events missing | ORG_TRAIL_SHADOWS_MEMBER | `describe-trails` in member; look for `IsOrganizationTrail: true` |\n| Only `us-east-1` events; other regions missing | MULTI_REGION_SCOPE_GAP | `describe-trails`; `IsMultiRegionTrail: false` |\n| `LatestDigestDeliveryTime` stale; `S3 validation failed` alarm | LOG_FILE_VALIDATION_FAILED | `get-trail-status`; S3 digest listing |\n| `lookup-events` shows events but CloudWatch Logs empty | CW_LOGS_DELIVERY_DELAYED | `get-trail-status`; CW Logs `LastEventTime` |\n| CloudTrail Lake `start-query` returns empty | LAKE_EDS_QUERY_ISSUE | `list-event-data-stores`; `get-event-selectors` on the EDS |\n| Specific AWS service events absent | SERVICE_NOT_IN_REGION | `lookup-events` with region filter; AWS docs |\n| S3 prefix mismatch | LOG_FILE_PREFIX_ERROR | `describe-trails`; `S3KeyPrefix` field |\n\n## Pre-flight: trail state and gather-info gate\n\nBefore running symptom-specific probes, gather the canonical trail\nstate and short-circuit on trail-wide events that mimic per-API\nmissing-events.\n\n> Pre-flight gather-info command block moved verbatim to [references\u002Fdiagnostic-commands.md](references\u002Fdiagnostic-commands.md) — load on demand.\n\n### Trail-state short-circuit\n\n| Signal | Effect on diagnosis |\n|---|---|\n| `IsLogging: false` | Trail was stopped. Jump to TRAIL_DISABLED. |\n| `IsLogging: true`, `LatestDeliveryTime` \u003C 60 min ago | Trail is delivering to S3. Pivot to event-selector or org-trail diagnosis. |\n| `IsLogging: true`, `LatestDeliveryTime` > 60 min old | Silent delivery failure. Jump to BUCKET_POLICY_BLOCKING or KMS_KEY_DISABLED. |\n| `IsOrganizationTrail: true` in a member account | Shadow trail from the org trail. Jump to ORG_TRAIL_SHADOWS_MEMBER. |\n| `IsMultiRegionTrail: false` | Trail captures only its home region. Jump to MULTI_REGION_SCOPE_GAP. |\n| `KmsKeyId: \u003Carn>`, `KeyState: Disabled` | KMS key disabled; log encryption blocked. Jump to KMS_KEY_DISABLED. |\n| `CloudWatchLogsLogGroupArn: null` | No CW Logs delivery configured. |\n| `IncludeGlobalServiceEvents: false` | IAM and STS global-service events excluded. |\n\n> Malformed-input re-prompt moved verbatim to [references\u002Ferror-handling.md](references\u002Ferror-handling.md) — load on demand.\n\n## Process — Diagnostic decision tree (apply in symptom order)\n\nThe diagnostic tree is symptom-driven. Pick the entry point based\non the observed symptom, then walk the layer-specific probes in\norder. Each layer ends with either a positive root-cause\nconfirmation (failing probe that matches the symptom) or a pass\nthat moves to the next layer. **Never emit ROOT_CAUSE_IDENTIFIED\nwithout a failing probe that matches the symptom.**\n\n### Step 0: Non-obvious behaviours that change diagnosis\n\n> Step 0 expert knowledge moved verbatim to [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md) — load on demand.\n\n### Step 1: Symptom entry — pick the diagnostic branch\n\n| Symptom | Branch |\n|---|---|\n| `get-trail-status` returns `IsLogging: false` | Step 2 — Trail disabled |\n| `IsLogging: true` but no new S3 objects | Step 3 — Bucket policy \u002F KMS |\n| Data-plane API (GetObject, InvokeFunction) missing | Step 4 — Data events |\n| Org trail logs mgmt account but not member | Step 5 — Org trail shadows |\n| Only one region's events appear | Step 6 — Multi-region scope |\n| `ReadWriteType: ReadOnly` but expecting writes | Step 7 — Event selector |\n| `lookup-events` shows events but CW Logs empty | Step 8 — CW Logs delivery |\n| CloudTrail Lake query returns empty | Step 9 — Lake EDS |\n| Specific AWS service events absent | Step 10 — Service not in region |\n| S3 prefix mismatch | Step 11 — Log file prefix |\n| None of the above | Step 12 — INSUFFICIENT_DATA |\n\n### Step 2: Trail disabled — `IsLogging: false`\n\nSymptom: `get-trail-status` returns `IsLogging: false`. The trail\nwas stopped via `stop-logging` (explicit), or never started after\nIaC creation (CloudFormation \u002F Terraform that created the trail\nwithout the `start-logging` invocation).\n\n```bash\naws cloudtrail get-trail-status --name \u003Ctrail> --output json\n# Look for: IsLogging: false, StopLoggingTime: \u003Ctimestamp>\n\naws cloudtrail lookup-events \\\n  --lookup-attributes AttributeKey=EventName,AttributeValue=StopLogging \\\n  --start-time $(date -d '-7 days' +%s) --end-time $(date +%s) --output json\n# Find WHO called StopLogging and when\n```\n\nIf `IsLogging: false`, **ROOT_CAUSE_IDENTIFIED** with\n`LAYER: TRAIL_DISABLED`. Remediate with\n`aws cloudtrail start-logging --name \u003Ctrail>`.\n\n> IaC pitfall detail moved verbatim to [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md) — load on demand.\n\n**Verdict:** ROOT_CAUSE_IDENTIFIED, `LAYER: TRAIL_DISABLED`.\n\n### Step 3: Bucket policy or KMS blocking delivery\n\nSymptom: `IsLogging: true` but `LatestDeliveryTime` is hours old;\nno new S3 objects in the trail bucket.\n\n```bash\naws cloudtrail get-trail-status --name \u003Ctrail> --output json | \\\n  jq '{IsLogging, LatestDeliveryTime, TimeLoggingStarted, TimeLoggingStopped}'\n\naws s3api get-bucket-policy --bucket \u003Cbucket> --output json | jq '.Policy'\n\naws s3 ls s3:\u002F\u002F\u003Cbucket>\u002F\u003Cprefix>\u002FAWSLogs\u002F\u003Caccount>\u002FCloudTrail\u002F \\\n  --recursive | tail -10\n\naws kms describe-key --key-id \u003Ckms-key-id> --output json | \\\n  jq '.KeyMetadata.{KeyState, KeyManager, Enabled}'\n```\n\n#### 3a: Bucket policy missing cloudtrail.amazonaws.com principal\n\nThe bucket policy MUST include a statement allowing the\n`cloudtrail.amazonaws.com` service principal to perform\n`s3:GetBucketAcl` (CloudTrail checks the bucket ACL on every\ndelivery), `s3:ListBucket` (CloudTrail lists the prefix to determine\nthe next sequence number), and `s3:PutObject` with the condition\n`s3:x-amz-acl: bucket-owner-full-control` (ensures the log file is\nowned by the bucket owner, not the CloudTrail service).\n\n> Canonical bucket policy JSON moved verbatim to [references\u002Fbucket-policy-and-org-trail-reference.md](references\u002Fbucket-policy-and-org-trail-reference.md) — load on demand.\n\nIf the bucket policy is missing this statement, missing the\ncondition, scoped to the wrong account, or has an explicit Deny\nthat matches, **ROOT_CAUSE_IDENTIFIED** with\n`LAYER: BUCKET_POLICY_BLOCKING`. For organization trails, the\n`Resource` ARN must include the org ID:\n`arn:aws:s3:::\u003Cbucket>\u002F\u003Cprefix>\u002FAWSLogs\u002Fo-\u003Corg-id>\u002F*`.\n\n#### 3b: KMS key disabled\n\nIf the trail has `KmsKeyId: \u003Carn>` and `KeyState: Disabled` or\n`PendingDeletion`, CloudTrail cannot encrypt log files and stops\ndelivering. **ROOT_CAUSE_IDENTIFIED** with `LAYER: KMS_KEY_DISABLED`.\nFix: re-enable the key (`aws kms enable-key --key-id \u003Cid>`), or\nmigrate to a new key via `update-trail --kms-key-id \u003Cnew-arn>`.\n\n**Verdicts:** ROOT_CAUSE_IDENTIFIED,\n`LAYER: BUCKET_POLICY_BLOCKING` or `KMS_KEY_DISABLED`.\n\n### Step 4: Data events not enabled\n\nSymptom: specific data-plane API calls (S3 GetObject, Lambda\nInvokeFunction, DynamoDB GetItem) are missing from lookup-events,\nbut management-plane APIs are present.\n\n```bash\naws cloudtrail get-event-selectors --trail-name \u003Ctrail> --output json\n# Look for: EventSelectors[].DataResources\n# An empty DataEvents array means data events are NOT being captured\n```\n\n> Canonical data-event selector table + CLI moved verbatim to [references\u002Fevent-selectors-and-data-events-reference.md](references\u002Fevent-selectors-and-data-events-reference.md) — load on demand.\n\nIf the trail's event selector has no `DataResources` for the\nexpected data source, **ROOT_CAUSE_IDENTIFIED** with\n`LAYER: DATA_EVENTS_NOT_ENABLED`. Note: data events are billed at\n$0.10 per 100,000 events (vs. free for the first copy of management\nevents). Confirm cost with the operator before re-enabling.\n\n**Verdict:** ROOT_CAUSE_IDENTIFIED, `LAYER: DATA_EVENTS_NOT_ENABLED`.\n\n### Step 5: Org trail shadows member trail\n\nSymptom: an organization trail in the management account captures\nthe management account's events but a member account's events are\nmissing, OR a member account's previously-working trail \"suddenly\nstopped delivering.\"\n\n```bash\n# In the member account\naws cloudtrail describe-trails --output json | \\\n  jq '.trailList[] | {Name, IsOrganizationTrail, S3BucketName}'\n# Look for: IsOrganizationTrail: true — this is the shadow trail\n\n# In the management account\naws cloudtrail describe-trails --output json | \\\n  jq '.trailList[] | select(.IsOrganizationTrail == true)'\n\n# Verify the org trail's bucket policy covers member accounts\naws s3api get-bucket-policy --bucket \u003Corg-trail-bucket> --output json | \\\n  jq '.Policy'\n# Look for: Resource ARN ending in \u002FAWSLogs\u002Fo-\u003Corg-id>\u002F*\n```\n\nWhen an org trail is created, CloudTrail creates a shadow trail in\nevery member account. The shadow trail delivers events to the **org\ntrail's bucket**, not the member's bucket. Any pre-existing member\ntrail that delivered to the member's own bucket stops delivering to\nthat bucket — the events are now captured by the org trail.\n\n> Org-trail shadow common patterns moved verbatim to [references\u002Fbucket-policy-and-org-trail-reference.md](references\u002Fbucket-policy-and-org-trail-reference.md) — load on demand.\n\nIf the org trail shadows the member trail and the operator expects\nevents in the member's own bucket, **ROOT_CAUSE_IDENTIFIED** with\n`LAYER: ORG_TRAIL_SHADOWS_MEMBER`. Fix: either accept that events\nare in the org bucket (recommended for centralized audit), or keep\nboth trails — the org trail delivers to the org bucket and the\nmember trail delivers to the member bucket.\n\n**Verdict:** ROOT_CAUSE_IDENTIFIED, `LAYER: ORG_TRAIL_SHADOWS_MEMBER`.\n\n### Step 6: Multi-region scope gap\n\nSymptom: only events from one region appear in the trail; events\nfrom other regions are missing.\n\n```bash\naws cloudtrail describe-trails --trail-name-list \u003Ctrail> --output json | \\\n  jq '.trailList[0].IsMultiRegionTrail'\n```\n\n> Multi-region explanation moved verbatim to [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md) — load on demand.\n\n**Verdict:** ROOT_CAUSE_IDENTIFIED, `LAYER: MULTI_REGION_SCOPE_GAP`.\n\n### Step 7: Event selector — read-only vs write-only\n\nSymptom: specific management-plane events (CreateBucket, RunInstances,\nPutObject) are missing; ReadOnly events (ListBuckets,\nDescribeInstances) are present.\n\n```bash\naws cloudtrail get-event-selectors --trail-name \u003Ctrail> --output json | \\\n  jq '.EventSelectors[].ReadWriteType'\n```\n\n> ReadWriteType explanation moved verbatim to [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md) — load on demand.\n\n**Verdict:** ROOT_CAUSE_IDENTIFIED, `LAYER: EVENT_SELECTOR_READONLY`.\n\n### Step 8: CloudWatch Logs delivery delay\n\nSymptom: `lookup-events` shows recent CloudTrail events but the\nCloudWatch Logs log group configured on the trail is empty or\ndelayed beyond the 5-15 minute expected window.\n\n```bash\naws cloudtrail get-trail-status --name \u003Ctrail> --output json | \\\n  jq '{LatestDeliveryTime, LatestCloudWatchLogsDeliveryTime}'\n\naws logs describe-log-streams --log-group-name \u003Ccw-log-group> \\\n  --order-by LastEventTime --descending --limit 5 --output json\n```\n\n> CW Logs delivery checks moved verbatim to [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md) — load on demand.\n\n**Verdict:** ROOT_CAUSE_IDENTIFIED,\n`LAYER: CW_LOGS_DELIVERY_DELAYED`.\n\n### Step 9: CloudTrail Lake event data store\n\nSymptom: CloudTrail Lake `start-query` returns empty for an event\nthat is present in the S3 trail.\n\n```bash\naws cloudtrail list-event-data-stores --output json\naws cloudtrail get-event-selectors --event-data-store \u003Ceds-id> --output json\n```\n\nLake EDS has its own event selectors independent of any S3 trail.\nCommon Lake EDS issues: EDS configured with `eventCategory:\nManagement` only (no data events); EDS scoped to a subset of\naccounts via advanced event selectors; EDS billing mode\n`PRICE-per-QUERY` with no query budget; EDS in a different region\nthan the events being queried (Lake is regional).\n\n**Verdict:** ROOT_CAUSE_IDENTIFIED, `LAYER: LAKE_EDS_QUERY_ISSUE`.\n\n### Step 10: AWS service not logging in region\n\nSymptom: events from a specific AWS service are absent from\nCloudTrail in a specific region.\n\n```bash\naws cloudtrail lookup-events \\\n  --lookup-attributes AttributeKey=EventSource,AttributeValue=\u003Cservice>.amazonaws.com \\\n  --region \u003Cregion> \\\n  --start-time $(date -d '-7 days' +%s) --end-time $(date +%s) --output json\n```\n\n> Service-region logging explanation moved verbatim to [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md) — load on demand.\n\n**Verdict:** ROOT_CAUSE_IDENTIFIED,\n`LAYER: SERVICE_NOT_IN_REGION`.\n\n### Step 11: Log file prefix error\n\nSymptom: `LatestDeliveryTime` is recent but the operator sees no\nlogs at the expected S3 prefix.\n\n```bash\naws cloudtrail describe-trails --trail-name-list \u003Ctrail> --output json | \\\n  jq '.trailList[0].S3KeyPrefix'\n\naws s3 ls s3:\u002F\u002F\u003Cbucket>\u002F\u003CS3KeyPrefix>\u002FAWSLogs\u002F\u003Caccount>\u002FCloudTrail\u002F \\\n  --recursive | tail -10\n```\n\nIf the operator is listing `s3:\u002F\u002Fbucket\u002Fcloudtrail\u002F` but the trail's\n`S3KeyPrefix` is `logs\u002F`, the logs are at\n`s3:\u002F\u002Fbucket\u002Flogs\u002FAWSLogs\u002F...`. Always read `S3KeyPrefix` from\n`describe-trails` before concluding delivery is broken.\n\n**Verdict:** ROOT_CAUSE_IDENTIFIED, `LAYER: LOG_FILE_PREFIX_ERROR`.\n\n### Step 12: INSUFFICIENT_DATA\n\nIf none of the above produced a positive root-cause match, OR a\nprobe requires operator input (live-account credentials, missing\ntrail config), emit INSUFFICIENT_DATA with the specific missing\npieces and the next probe to run once the info is available.\n\n## Output format\n\n```text\nTARGET: \u003Ctrail-name>\nVERDICT: ROOT_CAUSE_IDENTIFIED | INSUFFICIENT_DATA\nROOT_CAUSE: \u003Cone-sentence naming the failed configuration>\nLAYER: \u003CTRAIL_DISABLED | BUCKET_POLICY_BLOCKING | KMS_KEY_DISABLED |\n        DATA_EVENTS_NOT_ENABLED | EVENT_SELECTOR_READONLY |\n        ORG_TRAIL_SHADOWS_MEMBER | MULTI_REGION_SCOPE_GAP |\n        LOG_FILE_VALIDATION_FAILED | CW_LOGS_DELIVERY_DELAYED |\n        LAKE_EDS_QUERY_ISSUE | SERVICE_NOT_IN_REGION |\n        LOG_FILE_PREFIX_ERROR | UNKNOWN>\nEVIDENCE:\n  - \u003Cobserved symptom — the missing event or delivery gap>\n  - \u003Cfailing probe — command and its output that confirms the cause>\n  - \u003Cpassing probes — layers ruled out>\nREMEDIATION:\n  1. \u003Cspecific action with CLI command>\n  2. \u003Cverification command after the fix>\nCONFIRM: Before executing any state-changing CLI, emit and await:\n  \"CONFIRM: About to \u003Caction> on \u003Ctrail>. Proceed? (yes\u002Fno)\"\n```\n\n### Worked example — data events not enabled\n\n```text\nTARGET: prod-org-trail\nVERDICT: ROOT_CAUSE_IDENTIFIED\nROOT_CAUSE: Trail has IsLogging: true and management events are\n  delivering, but the operator expects S3 GetObject events from\n  account 222222222222 — and the trail's event selector has no\n  DataResources configured for AWS::S3::Object. Data events are\n  opt-in; the default event selector captures only management\n  events.\nLAYER: DATA_EVENTS_NOT_ENABLED\nEVIDENCE:\n  - Symptom: `lookup-events` for `s3.amazonaws.com:GetObject` in\n    the last 24 hours returns zero; management events (ListBuckets,\n    CreateBucket) are present.\n  - Probe: `get-event-selectors --trail-name prod-org-trail`\n    returns `EventSelectors: [{ReadWriteType: All,\n    IncludeManagementEvents: true}]` — no `DataResources` array.\n  - Passing: `get-trail-status` returns `IsLogging: true`,\n    `LatestDeliveryTime: 4 minutes ago` (healthy);\n    `IsMultiRegionTrail: true` (no scope gap); bucket policy\n    includes the `cloudtrail.amazonaws.com` principal.\nREMEDIATION:\n  1. Add S3 data events to the trail's event selector:\n     aws cloudtrail put-event-selectors --trail-name prod-org-trail \\\n       --event-selectors '[{\n         \"ReadWriteType\": \"All\",\n         \"IncludeManagementEvents\": true,\n         \"DataResources\": [{\"Type\": \"AWS::S3::Object\", \"Values\": [\"arn:aws:s3:::\"]\n         }]\n       }]'\n     (ARN `arn:aws:s3:::` captures ALL buckets. Scope to a\n     specific bucket: `arn:aws:s3:::\u003Cbucket>\u002F`.)\n  2. Verify with lookup-events 10-15 minutes after the change.\nCONFIRM: Before updating the event selector, emit and await:\n  \"CONFIRM: About to enable S3 data events on prod-org-trail. Data\n   events are billed at $0.10 per 100,000 events. Proceed? (yes\u002Fno)\"\n```\n\n## Anti-Patterns — NEVER\n\n- NEVER declare ROOT_CAUSE_IDENTIFIED without a failing probe that\n  matches the symptom. A \"process of elimination\" erodes trust.\n- NEVER trust `IsLogging: true` alone. CloudTrail retries silently\n  on bucket-policy rejection. Cross-reference `LatestDeliveryTime`.\n- NEVER conclude \"the trail is broken\" without checking\n  `get-event-selectors`. The most common missing-events cause is\n  that the operator expects data events the selector was never\n  configured to capture.\n- NEVER recommend deleting a member trail without checking for an\n  org trail. The org trail shadows member trails — deleting the\n  member trail does NOT restore pre-org-trail behaviour.\n- NEVER modify the bucket policy to remove the\n  `s3:x-amz-acl: bucket-owner-full-control` condition. Removing\n  it causes the CloudTrail service account to own the objects,\n  breaking downstream Athena \u002F Lake Formation queries.\n- NEVER re-enable data events without flagging the cost. Data\n  events are billed at $0.10 per 100,000 events; high-volume S3\n  buckets can generate millions of GetObject events per hour.\n- NEVER convert a single-region trail to multi-region without\n  confirming the S3 bucket policy covers all account IDs.\n- NEVER disable KMS encryption on a trail to fix delivery without\n  first verifying the key state. Disabling SSE-KMS changes the\n  security posture; the proper fix is to re-enable the key.\n- NEVER assume CloudTrail Lake and S3 trails share selectors. They\n  are independent ingestion paths.\n- NEVER recommend `update-trail` to fix delivery without confirming\n  downstream consumers (Athena, GuardDuty, SIEM) will not break.\n- NEVER expect CloudTrail events to appear instantly. The typical\n  delivery window is 5-15 minutes; investigate only if gap > 15 min.\n- NEVER use `lookup-events` for high-volume queries. Use Athena on\n  the S3 bucket or CloudTrail Lake `start-query` instead.\n- NEVER assume a service logs in every region. Cross-reference the\n  AWS CloudTrail documentation for the service-region combination.\n\n## Pre-flight safety checks (run before any state-changing CLI)\n\n> Pre-flight safety checks moved verbatim to [references\u002Fdiagnostic-commands.md](references\u002Fdiagnostic-commands.md) — load on demand.\n\n## Remediation guidance\n\n> Per-layer remediation guidance moved verbatim to [references\u002Fdiagnostic-commands.md](references\u002Fdiagnostic-commands.md) — load on demand.\n\n## References (load on demand)\n\n- [references\u002Fdiagnostic-commands.md](references\u002Fdiagnostic-commands.md) — pre-flight gather-info command block, pre-flight safety checks, per-layer remediation guidance\n- [references\u002Fbucket-policy-and-org-trail-reference.md](references\u002Fbucket-policy-and-org-trail-reference.md) — canonical CloudTrail bucket policy, org trail topology, member shadow-trail patterns\n- [references\u002Fevent-selectors-and-data-events-reference.md](references\u002Fevent-selectors-and-data-events-reference.md) — event selector types, data-event opt-in rules, canonical data-event selector configurations\n- [references\u002Ferror-handling.md](references\u002Ferror-handling.md) — malformed-input \u002F INSUFFICIENT_DATA re-prompt handling\n- [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md) — Mindset deep-dive, Step 0 non-obvious behaviours, per-step expert explanations\n\n## Domain\n\nAWS CloudOps \u002F Governance — CloudTrail Audit Logging, Event\nSelector Configuration, Organization Trail Topology, S3 Bucket\nPolicy for CloudTrail Delivery, KMS-Encrypted Log Files,\nCloudTrail Lake Event Data Stores, CloudWatch Logs Delivery,\nMulti-Region Trail Scope, Log File Validation.\n\n## AWS documentation\n\n- **AWS CloudTrail User Guide** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fawscloudtrail\u002Flatest\u002Fuserguide\u002F\n- **CloudTrail event selectors** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fawscloudtrail\u002Flatest\u002Fuserguide\u002Flogging-management-and-data-events-with-cloudtrail.html\n- **Organization trails** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fawscloudtrail\u002Flatest\u002Fuserguide\u002Fcreating-trail-organization.html\n- **S3 bucket policy for CloudTrail** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fawscloudtrail\u002Flatest\u002Fuserguide\u002Fcreate-s3-bucket-policy-for-cloudtrail.html\n- **CloudTrail Lake** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fawscloudtrail\u002Flatest\u002Fuserguide\u002Fcloudtrail-lake.html\n- **Log file validation** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fawscloudtrail\u002Flatest\u002Fuserguide\u002Fcloudtrail-log-file-validation-cli.html\n- **CloudTrail Insights** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fawscloudtrail\u002Flatest\u002Fuserguide\u002Flogging-insights-events-with-cloudtrail.html\n- **KMS-encrypted log files** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fawscloudtrail\u002Flatest\u002Fuserguide\u002Fencrypting-cloudtrail-log-files-with-aws-kms.html\n- **CloudTrail supported services by region** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fawscloudtrail\u002Flatest\u002Fuserguide\u002Fcloudtrail-supported-services.html\n","# CloudTrail Missing Events Troubleshooter\n\n## Quick start\n\n- **Symptom → layer map (the first plausible match drives the first\n  probe):** `get-trail-status` returns `IsLogging: false` →\n  TRAIL_DISABLED; `IsLogging: true` but S3 has no new log files →\n  BUCKET_POLICY_BLOCKING or KMS_KEY_DISABLED; specific data-plane\n  API (GetObject, InvokeFunction) missing →\n  DATA_EVENTS_NOT_ENABLED; org trail logs management account but\n  not a member → ORG_TRAIL_SHADOWS_MEMBER; only one region's\n  events appear → MULTI_REGION_SCOPE_GAP; lookup-events shows\n  events but CloudWatch Logs is empty → CW_LOGS_DELIVERY_DELAYED;\n  CloudTrail Lake query returns empty → LAKE_EDS_QUERY_ISSUE;\n  service not appearing at all → SERVICE_NOT_IN_REGION.\n- **Always verify with a probe, never guess.** Each layer has a\n  single command that proves or disproves it. A\n  ROOT_CAUSE_IDENTIFIED verdict requires positive evidence — a\n  failing probe that matches the symptom — not a process of\n  elimination that \"must be the bucket policy.\"\n- **The three rules every senior CloudTrail engineer keeps in\n  head:** (1) management events are default-on, but data events\n  (S3\u002FLambda\u002FDynamoDB data-plane) must be **explicitly enabled**\n  via an event selector; (2) an organization trail **shadows**\n  member-account trails — a member trail stops delivering as soon\n  as the org trail is created in the management account; (3) the\n  S3 bucket policy must **explicitly allow\n  `cloudtrail.amazonaws.com`** the `s3:GetBucketAcl`,\n  `s3:PutObject` (with the `s3:x-amz-acl: bucket-owner-full-control`\n  condition), and `s3:ListBucket` actions, or no log files land.\n- **`IsLogging: true` does NOT mean events are delivering.** A\n  trail can report `IsLogging: true` while the S3 bucket policy\n  silently rejects PutObject from the CloudTrail service principal.\n  The managed service does not fail the trail on bucket-policy\n  rejection — it keeps retrying. Always cross-reference\n  `LatestDeliveryTime` against the wall clock.\n- **INSUFFICIENT_DATA is acceptable.** Missing-events incidents\n  frequently present with partial telemetry (no CloudTrail event\n  for the CloudTrail config change itself, no S3 access logs). If\n  a failing probe cannot be obtained, emit INSUFFICIENT_DATA with\n  the specific missing inputs — do not declare a verdict on\n  inference alone.\n\n## Mindset\n\n> Mindset deep-dive moved verbatim to [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md) — load on demand.\n\n## Quick reference — symptom triage table\n\n| Symptom phrase \u002F error | Layer | First probe |\n|---|---|---|\n| `get-trail-status` returns `IsLogging: false` | TRAIL_DISABLED | `get-trail-status --name \u003Ctrail>`; `lookup-events` for `StopLogging` |\n| `IsLogging: true` but no new S3 objects in last hour | BUCKET_POLICY_BLOCKING \u002F KMS_KEY_DISABLED | `s3api get-bucket-policy`; `s3 ls` for recent objects |\n| Specific data-plane API (GetObject, InvokeFunction) missing | DATA_EVENTS_NOT_ENABLED | `get-event-selectors`; check `DataEvents` array |\n| `ReadWriteType: ReadOnly` but expecting write events | EVENT_SELECTOR_READONLY | `get-event-selectors`; check `ReadWriteType` |\n| Org trail exists but member account events missing | ORG_TRAIL_SHADOWS_MEMBER | `describe-trails` in member; look for `IsOrganizationTrail: true` |\n| Only `us-east-1` events; other regions missing | MULTI_REGION_SCOPE_GAP | `describe-trails`; `IsMultiRegionTrail: false` |\n| `LatestDigestDeliveryTime` stale; `S3 validation failed` alarm | LOG_FILE_VALIDATION_FAILED | `get-trail-status`; S3 digest listing |\n| `lookup-events` shows events but CloudWatch Logs empty | CW_LOGS_DELIVERY_DELAYED | `get-trail-status`; CW Logs `LastEventTime` |\n| CloudTrail Lake `start-query` returns empty | LAKE_EDS_QUERY_ISSUE | `list-event-data-stores`; `get-event-selectors` on the EDS |\n| Specific AWS service events absent | SERVICE_NOT_IN_REGION | `lookup-events` with region filter; AWS docs |\n| S3 prefix mismatch | LOG_FILE_PREFIX_ERROR | `describe-trails`; `S3KeyPrefix` field |\n\n## Pre-flight: trail state and gather-info gate\n\nBefore running symptom-specific probes, gather the canonical trail\nstate and short-circuit on trail-wide events that mimic per-API\nmissing-events.\n\n> Pre-flight gather-info command block moved verbatim to [references\u002Fdiagnostic-commands.md](references\u002Fdiagnostic-commands.md) — load on demand.\n\n### Trail-state short-circuit\n\n| Signal | Effect on diagnosis |\n|---|---|\n| `IsLogging: false` | Trail was stopped. Jump to TRAIL_DISABLED. |\n| `IsLogging: true`, `LatestDeliveryTime` \u003C 60 min ago | Trail is delivering to S3. Pivot to event-selector or org-trail diagnosis. |\n| `IsLogging: true`, `LatestDeliveryTime` > 60 min old | Silent delivery failure. Jump to BUCKET_POLICY_BLOCKING or KMS_KEY_DISABLED. |\n| `IsOrganizationTrail: true` in a member account | Shadow trail from the org trail. Jump to ORG_TRAIL_SHADOWS_MEMBER. |\n| `IsMultiRegionTrail: false` | Trail captures only its home region. Jump to MULTI_REGION_SCOPE_GAP. |\n| `KmsKeyId: \u003Carn>`, `KeyState: Disabled` | KMS key disabled; log encryption blocked. Jump to KMS_KEY_DISABLED. |\n| `CloudWatchLogsLogGroupArn: null` | No CW Logs delivery configured. |\n| `IncludeGlobalServiceEvents: false` | IAM and STS global-service events excluded. |\n\n> Malformed-input re-prompt moved verbatim to [references\u002Ferror-handling.md](references\u002Ferror-handling.md) — load on demand.\n\n## Process — Diagnostic decision tree (apply in symptom order)\n\nThe diagnostic tree is symptom-driven. Pick the entry point based\non the observed symptom, then walk the layer-specific probes in\norder. Each layer ends with either a positive root-cause\nconfirmation (failing probe that matches the symptom) or a pass\nthat moves to the next layer. **Never emit ROOT_CAUSE_IDENTIFIED\nwithout a failing probe that matches the symptom.**\n\n### Step 0: Non-obvious behaviours that change diagnosis\n\n> Step 0 expert knowledge moved verbatim to [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md) — load on demand.\n\n### Step 1: Symptom entry — pick the diagnostic branch\n\n| Symptom | Branch |\n|---|---|\n| `get-trail-status` returns `IsLogging: false` | Step 2 — Trail disabled |\n| `IsLogging: true` but no new S3 objects | Step 3 — Bucket policy \u002F KMS |\n| Data-plane API (GetObject, InvokeFunction) missing | Step 4 — Data events |\n| Org trail logs mgmt account but not member | Step 5 — Org trail shadows |\n| Only one region's events appear | Step 6 — Multi-region scope |\n| `ReadWriteType: ReadOnly` but expecting writes | Step 7 — Event selector |\n| `lookup-events` shows events but CW Logs empty | Step 8 — CW Logs delivery |\n| CloudTrail Lake query returns empty | Step 9 — Lake EDS |\n| Specific AWS service events absent | Step 10 — Service not in region |\n| S3 prefix mismatch | Step 11 — Log file prefix |\n| None of the above | Step 12 — INSUFFICIENT_DATA |\n\n### Step 2: Trail disabled — `IsLogging: false`\n\nSymptom: `get-trail-status` returns `IsLogging: false`. The trail\nwas stopped via `stop-logging` (explicit), or never started after\nIaC creation (CloudFormation \u002F Terraform that created the trail\nwithout the `start-logging` invocation).\n\n```bash\naws cloudtrail get-trail-status --name \u003Ctrail> --output json\n# Look for: IsLogging: false, StopLoggingTime: \u003Ctimestamp>\n\naws cloudtrail lookup-events \\\n  --lookup-attributes AttributeKey=EventName,AttributeValue=StopLogging \\\n  --start-time $(date -d '-7 days' +%s) --end-time $(date +%s) --output json\n# Find WHO called StopLogging and when\n```\n\nIf `IsLogging: false`, **ROOT_CAUSE_IDENTIFIED** with\n`LAYER: TRAIL_DISABLED`. Remediate with\n`aws cloudtrail start-logging --name \u003Ctrail>`.\n\n> IaC pitfall detail moved verbatim to [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md) — load on demand.\n\n**Verdict:** ROOT_CAUSE_IDENTIFIED, `LAYER: TRAIL_DISABLED`.\n\n### Step 3: Bucket policy or KMS blocking delivery\n\nSymptom: `IsLogging: true` but `LatestDeliveryTime` is hours old;\nno new S3 objects in the trail bucket.\n\n```bash\naws cloudtrail get-trail-status --name \u003Ctrail> --output json | \\\n  jq '{IsLogging, LatestDeliveryTime, TimeLoggingStarted, TimeLoggingStopped}'\n\naws s3api get-bucket-policy --bucket \u003Cbucket> --output json | jq '.Policy'\n\naws s3 ls s3:\u002F\u002F\u003Cbucket>\u002F\u003Cprefix>\u002FAWSLogs\u002F\u003Caccount>\u002FCloudTrail\u002F \\\n  --recursive | tail -10\n\naws kms describe-key --key-id \u003Ckms-key-id> --output json | \\\n  jq '.KeyMetadata.{KeyState, KeyManager, Enabled}'\n```\n\n#### 3a: Bucket policy missing cloudtrail.amazonaws.com principal\n\nThe bucket policy MUST include a statement allowing the\n`cloudtrail.amazonaws.com` service principal to perform\n`s3:GetBucketAcl` (CloudTrail checks the bucket ACL on every\ndelivery), `s3:ListBucket` (CloudTrail lists the prefix to determine\nthe next sequence number), and `s3:PutObject` with the condition\n`s3:x-amz-acl: bucket-owner-full-control` (ensures the log file is\nowned by the bucket owner, not the CloudTrail service).\n\n> Canonical bucket policy JSON moved verbatim to [references\u002Fbucket-policy-and-org-trail-reference.md](references\u002Fbucket-policy-and-org-trail-reference.md) — load on demand.\n\nIf the bucket policy is missing this statement, missing the\ncondition, scoped to the wrong account, or has an explicit Deny\nthat matches, **ROOT_CAUSE_IDENTIFIED** with\n`LAYER: BUCKET_POLICY_BLOCKING`. For organization trails, the\n`Resource` ARN must include the org ID:\n`arn:aws:s3:::\u003Cbucket>\u002F\u003Cprefix>\u002FAWSLogs\u002Fo-\u003Corg-id>\u002F*`.\n\n#### 3b: KMS key disabled\n\nIf the trail has `KmsKeyId: \u003Carn>` and `KeyState: Disabled` or\n`PendingDeletion`, CloudTrail cannot encrypt log files and stops\ndelivering. **ROOT_CAUSE_IDENTIFIED** with `LAYER: KMS_KEY_DISABLED`.\nFix: re-enable the key (`aws kms enable-key --key-id \u003Cid>`), or\nmigrate to a new key via `update-trail --kms-key-id \u003Cnew-arn>`.\n\n**Verdicts:** ROOT_CAUSE_IDENTIFIED,\n`LAYER: BUCKET_POLICY_BLOCKING` or `KMS_KEY_DISABLED`.\n\n### Step 4: Data events not enabled\n\nSymptom: specific data-plane API calls (S3 GetObject, Lambda\nInvokeFunction, DynamoDB GetItem) are missing from lookup-events,\nbut management-plane APIs are present.\n\n```bash\naws cloudtrail get-event-selectors --trail-name \u003Ctrail> --output json\n# Look for: EventSelectors[].DataResources\n# An empty DataEvents array means data events are NOT being captured\n```\n\n> Canonical data-event selector table + CLI moved verbatim to [references\u002Fevent-selectors-and-data-events-reference.md](references\u002Fevent-selectors-and-data-events-reference.md) — load on demand.\n\nIf the trail's event selector has no `DataResources` for the\nexpected data source, **ROOT_CAUSE_IDENTIFIED** with\n`LAYER: DATA_EVENTS_NOT_ENABLED`. Note: data events are billed at\n$0.10 per 100,000 events (vs. free for the first copy of management\nevents). Confirm cost with the operator before re-enabling.\n\n**Verdict:** ROOT_CAUSE_IDENTIFIED, `LAYER: DATA_EVENTS_NOT_ENABLED`.\n\n### Step 5: Org trail shadows member trail\n\nSymptom: an organization trail in the management account captures\nthe management account's events but a member account's events are\nmissing, OR a member account's previously-working trail \"suddenly\nstopped delivering.\"\n\n```bash\n# In the member account\naws cloudtrail describe-trails --output json | \\\n  jq '.trailList[] | {Name, IsOrganizationTrail, S3BucketName}'\n# Look for: IsOrganizationTrail: true — this is the shadow trail\n\n# In the management account\naws cloudtrail describe-trails --output json | \\\n  jq '.trailList[] | select(.IsOrganizationTrail == true)'\n\n# Verify the org trail's bucket policy covers member accounts\naws s3api get-bucket-policy --bucket \u003Corg-trail-bucket> --output json | \\\n  jq '.Policy'\n# Look for: Resource ARN ending in \u002FAWSLogs\u002Fo-\u003Corg-id>\u002F*\n```\n\nWhen an org trail is created, CloudTrail creates a shadow trail in\nevery member account. The shadow trail delivers events to the **org\ntrail's bucket**, not the member's bucket. Any pre-existing member\ntrail that delivered to the member's own bucket stops delivering to\nthat bucket — the events are now captured by the org trail.\n\n> Org-trail shadow common patterns moved verbatim to [references\u002Fbucket-policy-and-org-trail-reference.md](references\u002Fbucket-policy-and-org-trail-reference.md) — load on demand.\n\nIf the org trail shadows the member trail and the operator expects\nevents in the member's own bucket, **ROOT_CAUSE_IDENTIFIED** with\n`LAYER: ORG_TRAIL_SHADOWS_MEMBER`. Fix: either accept that events\nare in the org bucket (recommended for centralized audit), or keep\nboth trails — the org trail delivers to the org bucket and the\nmember trail delivers to the member bucket.\n\n**Verdict:** ROOT_CAUSE_IDENTIFIED, `LAYER: ORG_TRAIL_SHADOWS_MEMBER`.\n\n### Step 6: Multi-region scope gap\n\nSymptom: only events from one region appear in the trail; events\nfrom other regions are missing.\n\n```bash\naws cloudtrail describe-trails --trail-name-list \u003Ctrail> --output json | \\\n  jq '.trailList[0].IsMultiRegionTrail'\n```\n\n> Multi-region explanation moved verbatim to [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md) — load on demand.\n\n**Verdict:** ROOT_CAUSE_IDENTIFIED, `LAYER: MULTI_REGION_SCOPE_GAP`.\n\n### Step 7: Event selector — read-only vs write-only\n\nSymptom: specific management-plane events (CreateBucket, RunInstances,\nPutObject) are missing; ReadOnly events (ListBuckets,\nDescribeInstances) are present.\n\n```bash\naws cloudtrail get-event-selectors --trail-name \u003Ctrail> --output json | \\\n  jq '.EventSelectors[].ReadWriteType'\n```\n\n> ReadWriteType explanation moved verbatim to [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md) — load on demand.\n\n**Verdict:** ROOT_CAUSE_IDENTIFIED, `LAYER: EVENT_SELECTOR_READONLY`.\n\n### Step 8: CloudWatch Logs delivery delay\n\nSymptom: `lookup-events` shows recent CloudTrail events but the\nCloudWatch Logs log group configured on the trail is empty or\ndelayed beyond the 5-15 minute expected window.\n\n```bash\naws cloudtrail get-trail-status --name \u003Ctrail> --output json | \\\n  jq '{LatestDeliveryTime, LatestCloudWatchLogsDeliveryTime}'\n\naws logs describe-log-streams --log-group-name \u003Ccw-log-group> \\\n  --order-by LastEventTime --descending --limit 5 --output json\n```\n\n> CW Logs delivery checks moved verbatim to [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md) — load on demand.\n\n**Verdict:** ROOT_CAUSE_IDENTIFIED,\n`LAYER: CW_LOGS_DELIVERY_DELAYED`.\n\n### Step 9: CloudTrail Lake event data store\n\nSymptom: CloudTrail Lake `start-query` returns empty for an event\nthat is present in the S3 trail.\n\n```bash\naws cloudtrail list-event-data-stores --output json\naws cloudtrail get-event-selectors --event-data-store \u003Ceds-id> --output json\n```\n\nLake EDS has its own event selectors independent of any S3 trail.\nCommon Lake EDS issues: EDS configured with `eventCategory:\nManagement` only (no data events); EDS scoped to a subset of\naccounts via advanced event selectors; EDS billing mode\n`PRICE-per-QUERY` with no query budget; EDS in a different region\nthan the events being queried (Lake is regional).\n\n**Verdict:** ROOT_CAUSE_IDENTIFIED, `LAYER: LAKE_EDS_QUERY_ISSUE`.\n\n### Step 10: AWS service not logging in region\n\nSymptom: events from a specific AWS service are absent from\nCloudTrail in a specific region.\n\n```bash\naws cloudtrail lookup-events \\\n  --lookup-attributes AttributeKey=EventSource,AttributeValue=\u003Cservice>.amazonaws.com \\\n  --region \u003Cregion> \\\n  --start-time $(date -d '-7 days' +%s) --end-time $(date +%s) --output json\n```\n\n> Service-region logging explanation moved verbatim to [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md) — load on demand.\n\n**Verdict:** ROOT_CAUSE_IDENTIFIED,\n`LAYER: SERVICE_NOT_IN_REGION`.\n\n### Step 11: Log file prefix error\n\nSymptom: `LatestDeliveryTime` is recent but the operator sees no\nlogs at the expected S3 prefix.\n\n```bash\naws cloudtrail describe-trails --trail-name-list \u003Ctrail> --output json | \\\n  jq '.trailList[0].S3KeyPrefix'\n\naws s3 ls s3:\u002F\u002F\u003Cbucket>\u002F\u003CS3KeyPrefix>\u002FAWSLogs\u002F\u003Caccount>\u002FCloudTrail\u002F \\\n  --recursive | tail -10\n```\n\nIf the operator is listing `s3:\u002F\u002Fbucket\u002Fcloudtrail\u002F` but the trail's\n`S3KeyPrefix` is `logs\u002F`, the logs are at\n`s3:\u002F\u002Fbucket\u002Flogs\u002FAWSLogs\u002F...`. Always read `S3KeyPrefix` from\n`describe-trails` before concluding delivery is broken.\n\n**Verdict:** ROOT_CAUSE_IDENTIFIED, `LAYER: LOG_FILE_PREFIX_ERROR`.\n\n### Step 12: INSUFFICIENT_DATA\n\nIf none of the above produced a positive root-cause match, OR a\nprobe requires operator input (live-account credentials, missing\ntrail config), emit INSUFFICIENT_DATA with the specific missing\npieces and the next probe to run once the info is available.\n\n## Output format\n\n```text\nTARGET: \u003Ctrail-name>\nVERDICT: ROOT_CAUSE_IDENTIFIED | INSUFFICIENT_DATA\nROOT_CAUSE: \u003Cone-sentence naming the failed configuration>\nLAYER: \u003CTRAIL_DISABLED | BUCKET_POLICY_BLOCKING | KMS_KEY_DISABLED |\n        DATA_EVENTS_NOT_ENABLED | EVENT_SELECTOR_READONLY |\n        ORG_TRAIL_SHADOWS_MEMBER | MULTI_REGION_SCOPE_GAP |\n        LOG_FILE_VALIDATION_FAILED | CW_LOGS_DELIVERY_DELAYED |\n        LAKE_EDS_QUERY_ISSUE | SERVICE_NOT_IN_REGION |\n        LOG_FILE_PREFIX_ERROR | UNKNOWN>\nEVIDENCE:\n  - \u003Cobserved symptom — the missing event or delivery gap>\n  - \u003Cfailing probe — command and its output that confirms the cause>\n  - \u003Cpassing probes — layers ruled out>\nREMEDIATION:\n  1. \u003Cspecific action with CLI command>\n  2. \u003Cverification command after the fix>\nCONFIRM: Before executing any state-changing CLI, emit and await:\n  \"CONFIRM: About to \u003Caction> on \u003Ctrail>. Proceed? (yes\u002Fno)\"\n```\n\n### Worked example — data events not enabled\n\n```text\nTARGET: prod-org-trail\nVERDICT: ROOT_CAUSE_IDENTIFIED\nROOT_CAUSE: Trail has IsLogging: true and management events are\n  delivering, but the operator expects S3 GetObject events from\n  account 222222222222 — and the trail's event selector has no\n  DataResources configured for AWS::S3::Object. Data events are\n  opt-in; the default event selector captures only management\n  events.\nLAYER: DATA_EVENTS_NOT_ENABLED\nEVIDENCE:\n  - Symptom: `lookup-events` for `s3.amazonaws.com:GetObject` in\n    the last 24 hours returns zero; management events (ListBuckets,\n    CreateBucket) are present.\n  - Probe: `get-event-selectors --trail-name prod-org-trail`\n    returns `EventSelectors: [{ReadWriteType: All,\n    IncludeManagementEvents: true}]` — no `DataResources` array.\n  - Passing: `get-trail-status` returns `IsLogging: true`,\n    `LatestDeliveryTime: 4 minutes ago` (healthy);\n    `IsMultiRegionTrail: true` (no scope gap); bucket policy\n    includes the `cloudtrail.amazonaws.com` principal.\nREMEDIATION:\n  1. Add S3 data events to the trail's event selector:\n     aws cloudtrail put-event-selectors --trail-name prod-org-trail \\\n       --event-selectors '[{\n         \"ReadWriteType\": \"All\",\n         \"IncludeManagementEvents\": true,\n         \"DataResources\": [{\"Type\": \"AWS::S3::Object\", \"Values\": [\"arn:aws:s3:::\"]\n         }]\n       }]'\n     (ARN `arn:aws:s3:::` captures ALL buckets. Scope to a\n     specific bucket: `arn:aws:s3:::\u003Cbucket>\u002F`.)\n  2. Verify with lookup-events 10-15 minutes after the change.\nCONFIRM: Before updating the event selector, emit and await:\n  \"CONFIRM: About to enable S3 data events on prod-org-trail. Data\n   events are billed at $0.10 per 100,000 events. Proceed? (yes\u002Fno)\"\n```\n\n## Anti-Patterns — NEVER\n\n- NEVER declare ROOT_CAUSE_IDENTIFIED without a failing probe that\n  matches the symptom. A \"process of elimination\" erodes trust.\n- NEVER trust `IsLogging: true` alone. CloudTrail retries silently\n  on bucket-policy rejection. Cross-reference `LatestDeliveryTime`.\n- NEVER conclude \"the trail is broken\" without checking\n  `get-event-selectors`. The most common missing-events cause is\n  that the operator expects data events the selector was never\n  configured to capture.\n- NEVER recommend deleting a member trail without checking for an\n  org trail. The org trail shadows member trails — deleting the\n  member trail does NOT restore pre-org-trail behaviour.\n- NEVER modify the bucket policy to remove the\n  `s3:x-amz-acl: bucket-owner-full-control` condition. Removing\n  it causes the CloudTrail service account to own the objects,\n  breaking downstream Athena \u002F Lake Formation queries.\n- NEVER re-enable data events without flagging the cost. Data\n  events are billed at $0.10 per 100,000 events; high-volume S3\n  buckets can generate millions of GetObject events per hour.\n- NEVER convert a single-region trail to multi-region without\n  confirming the S3 bucket policy covers all account IDs.\n- NEVER disable KMS encryption on a trail to fix delivery without\n  first verifying the key state. Disabling SSE-KMS changes the\n  security posture; the proper fix is to re-enable the key.\n- NEVER assume CloudTrail Lake and S3 trails share selectors. They\n  are independent ingestion paths.\n- NEVER recommend `update-trail` to fix delivery without confirming\n  downstream consumers (Athena, GuardDuty, SIEM) will not break.\n- NEVER expect CloudTrail events to appear instantly. The typical\n  delivery window is 5-15 minutes; investigate only if gap > 15 min.\n- NEVER use `lookup-events` for high-volume queries. Use Athena on\n  the S3 bucket or CloudTrail Lake `start-query` instead.\n- NEVER assume a service logs in every region. Cross-reference the\n  AWS CloudTrail documentation for the service-region combination.\n\n## Pre-flight safety checks (run before any state-changing CLI)\n\n> Pre-flight safety checks moved verbatim to [references\u002Fdiagnostic-commands.md](references\u002Fdiagnostic-commands.md) — load on demand.\n\n## Remediation guidance\n\n> Per-layer remediation guidance moved verbatim to [references\u002Fdiagnostic-commands.md](references\u002Fdiagnostic-commands.md) — load on demand.\n\n## References (load on demand)\n\n- [references\u002Fdiagnostic-commands.md](references\u002Fdiagnostic-commands.md) — pre-flight gather-info command block, pre-flight safety checks, per-layer remediation guidance\n- [references\u002Fbucket-policy-and-org-trail-reference.md](references\u002Fbucket-policy-and-org-trail-reference.md) — canonical CloudTrail bucket policy, org trail topology, member shadow-trail patterns\n- [references\u002Fevent-selectors-and-data-events-reference.md](references\u002Fevent-selectors-and-data-events-reference.md) — event selector types, data-event opt-in rules, canonical data-event selector configurations\n- [references\u002Ferror-handling.md](references\u002Ferror-handling.md) — malformed-input \u002F INSUFFICIENT_DATA re-prompt handling\n- [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md) — Mindset deep-dive, Step 0 non-obvious behaviours, per-step expert explanations\n\n## Domain\n\nAWS CloudOps \u002F Governance — CloudTrail Audit Logging, Event\nSelector Configuration, Organization Trail Topology, S3 Bucket\nPolicy for CloudTrail Delivery, KMS-Encrypted Log Files,\nCloudTrail Lake Event Data Stores, CloudWatch Logs Delivery,\nMulti-Region Trail Scope, Log File Validation.\n\n## AWS documentation\n\n- **AWS CloudTrail User Guide** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fawscloudtrail\u002Flatest\u002Fuserguide\u002F\n- **CloudTrail event selectors** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fawscloudtrail\u002Flatest\u002Fuserguide\u002Flogging-management-and-data-events-with-cloudtrail.html\n- **Organization trails** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fawscloudtrail\u002Flatest\u002Fuserguide\u002Fcreating-trail-organization.html\n- **S3 bucket policy for CloudTrail** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fawscloudtrail\u002Flatest\u002Fuserguide\u002Fcreate-s3-bucket-policy-for-cloudtrail.html\n- **CloudTrail Lake** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fawscloudtrail\u002Flatest\u002Fuserguide\u002Fcloudtrail-lake.html\n- **Log file validation** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fawscloudtrail\u002Flatest\u002Fuserguide\u002Fcloudtrail-log-file-validation-cli.html\n- **CloudTrail Insights** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fawscloudtrail\u002Flatest\u002Fuserguide\u002Flogging-insights-events-with-cloudtrail.html\n- **KMS-encrypted log files** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fawscloudtrail\u002Flatest\u002Fuserguide\u002Fencrypting-cloudtrail-log-files-with-aws-kms.html\n- **CloudTrail supported services by region** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fawscloudtrail\u002Flatest\u002Fuserguide\u002Fcloudtrail-supported-services.html\n",{"name":5,"license":15,"metadata":24,"description":7,"compatibility":44},{"tags":25,"phase":26,"author":27,"domain":28,"family":29,"version":30,"keywords":31,"task_type":32,"complexity":33,"entry_point":34,"skill_class":35,"when_to_use":36,"requires_llm":37,"verdict_shape":38,"when_not_to_use":39,"lifecycle_status":40,"invocation_schema":41,"supports_pipeline":37,"invocation_example":42,"activation_triggers":43},"cloudtrail, governance, troubleshoot, missing-events, audit, compliance, org-trail, event-selectors","2","Jacky Chan — AWS Community Builder","aws-cloudops","Governance","0.1.0","CloudTrail, audit logging, missing events, trail not logging, trail disabled, stop-logging, S3 bucket policy, cloudtrail.amazonaws.com, organization trail, member account trail, org trail shadows member, management events, data events, S3 data events, Lambda data events, DynamoDB data events, CloudTrail Insights, read-only events, write-only events, event selector, advanced event selector, multi-region trail, single-region trail, log file validation, S3 digest, CloudWatch Logs delivery, CloudTrail Lake, event data store, KMS key disabled, log encryption, log file prefix, AWS service not logging, troubleshooting","troubleshoot","medium","false","capability","Diagnosing why CloudTrail events are missing — a specific API call is not appearing in lookup-events, the S3 bucket is not receiving log files, an organisation trail is not logging a member account, data events (S3 \u002F Lambda \u002F DynamoDB) are absent despite the trail being IsLogging true, CloudTrail Insights is silent, log file validation digest is failing, CloudWatch Logs delivery is delayed, CloudTrail Lake query returns empty, a regional service is not logging, or KMS-disabled log encryption is blocking delivery. Use whenever the symptom is \"events that should be in CloudTrail are not\".","true","ROOT_CAUSE_IDENTIFIED | INSUFFICIENT_DATA","Steady-state CloudTrail posture audits (use cloudtrail-org-trail-auditor), IAM policy authoring for the CloudTrail service role (use iam-least-privilege-advisor), CloudTrail Lake event-data-store provisioning (use cloudtrail-lake-operator), Security Hub finding triage (use securityhub-finding-troubleshooter), or CloudWatch Logs ingestion from non-CloudTrail sources. This skill diagnoses missing-events incidents; it does not audit steady-state configuration posture or provision new trails.","active","Input: either (a) a symptom description (trail name, the missing event source or eventName, any error strings from the console), optionally paired with describe-trails \u002F get-trail-status \u002F get-event-selectors output, OR (b) a TrailName plus caller context (region, expected event) for live-account diagnosis. Output: a deterministic TARGET \u002F VERDICT \u002F ROOT_CAUSE \u002F LAYER \u002F EVIDENCE \u002F REMEDIATION block where VERDICT ∈ {ROOT_CAUSE_IDENTIFIED, INSUFFICIENT_DATA} and LAYER ∈ {TRAIL_DISABLED, BUCKET_POLICY_BLOCKING, ORG_TRAIL_SHADOWS_MEMBER, DATA_EVENTS_NOT_ENABLED, EVENT_SELECTOR_READONLY, MULTI_REGION_SCOPE_GAP, LOG_FILE_VALIDATION_FAILED, CW_LOGS_DELIVERY_DELAYED, LAKE_EDS_QUERY_ISSUE, SERVICE_NOT_IN_REGION, KMS_KEY_DISABLED, LOG_FILE_PREFIX_ERROR, UNKNOWN}.","# Minimal valid input (offline symptom classification):\nSymptom: \"CloudTrail trail prod-org-trail shows IsLogging true but S3 GetObject events from account 222222222222 are not\nappearing in lookup-events for the last 24 hours.\"\nTrailName: prod-org-trail\nIsOrganizationTrails: true\nIsLogging: true\nRegions: multi-region (us-east-1 home)\nEventSelectors:\n  - ManagementEvents: Source = aws.amazonaws.com, ReadWriteType = All\n  - DataEvents: (none configured)\nExpectedEventSource: s3.amazonaws.com\nExpectedEventName: GetObject\nCallerAccount: 222222222222","CloudTrail missing events, CloudTrail events not appearing, CloudTrail trail not logging, CloudTrail IsLogging false, CloudTrail stop-logging, CloudTrail S3 bucket policy, CloudTrail bucket policy missing cloudtrail.amazonaws.com, CloudTrail data events missing, CloudTrail S3 data events, CloudTrail Lambda data events, CloudTrail management events, CloudTrail Insights not firing, CloudTrail read-only events, CloudTrail write-only events, CloudTrail event selector, CloudTrail multi-region trail, CloudTrail single-region, CloudTrail log file validation, CloudTrail digest, CloudTrail CloudWatch Logs delivery delay, CloudTrail Lake empty query, CloudTrail KMS key disabled, CloudTrail log encryption blocked, CloudTrail org trail not logging member, CloudTrail log file prefix, CloudTrail service not logging, troubleshoot CloudTrail missing events","Agent runtime that reads SKILL.md (Claude Code, Cursor, Windsurf, Codex, Gemini). Offline symptom classification works from pasted error messages and describe-trails \u002F get-trail-status \u002F get-event-selectors JSON. Live-account diagnosis uses aws cloudtrail describe-trails, get-trail-status, get-event-selectors, get-insight-selectors, lookup-events, aws s3api get-bucket-policy, get-bucket-location, aws kms describe-key, aws organizations list-delegated-administrators, describe-organization...","main","eeace51bd5dd1db2030729d83eeab988861553aa","skills\u002Fcloudtrail-missing-events-troubleshooter",0,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills","https:\u002F\u002Fgithub.com\u002Fjhkchan","CTO & Co-Founder @Beever-AI  & @votee. CAISP. AWS Community Builder. Organizer@GDGCloudHK. MongoDB Champion. Technopreneur + Infornographer.","2026-09-24 08:54:10",{"source":8,"skillName":5,"commands":54,"prompt":64,"zipAvailable":65},[55,58,61],{"tool":56,"command":57},"npx","npx skills add jhkchan\u002Faws-agent-skills --skill cloudtrail-missing-events-troubleshooter",{"tool":59,"command":60},"bunx","bunx skills add jhkchan\u002Faws-agent-skills --skill cloudtrail-missing-events-troubleshooter",{"tool":62,"command":63},"pnpm","pnpm dlx skills add jhkchan\u002Faws-agent-skills --skill cloudtrail-missing-events-troubleshooter","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fcloudtrail-missing-events-troubleshooter\u002FSKILL.md",true,[67,73,77,81,85,89,93,97,101,105,109,113,117,121,125,129,133,137,141,145],{"path":68,"resourceType":69,"resourceTypeDesc":70,"sizeBytes":71,"sourceHtmlUrl":72},"eval\u002Ftest-cases.yaml","REFERENCE","参考文档",645,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fcloudtrail-missing-events-troubleshooter\u002Feval\u002Ftest-cases.yaml",{"path":74,"resourceType":69,"resourceTypeDesc":70,"sizeBytes":75,"sourceHtmlUrl":76},"evals\u002Fbaselines\u002Fdata-events-not-enabled.md",353,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fcloudtrail-missing-events-troubleshooter\u002Fevals\u002Fbaselines\u002Fdata-events-not-enabled.md",{"path":78,"resourceType":69,"resourceTypeDesc":70,"sizeBytes":79,"sourceHtmlUrl":80},"evals\u002Fbaselines\u002Forg-trail-shadowing.md",296,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fcloudtrail-missing-events-troubleshooter\u002Fevals\u002Fbaselines\u002Forg-trail-shadowing.md",{"path":82,"resourceType":69,"resourceTypeDesc":70,"sizeBytes":83,"sourceHtmlUrl":84},"evals\u002Fbaselines\u002Fread-only-filter.md",271,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fcloudtrail-missing-events-troubleshooter\u002Fevals\u002Fbaselines\u002Fread-only-filter.md",{"path":86,"resourceType":69,"resourceTypeDesc":70,"sizeBytes":87,"sourceHtmlUrl":88},"evals\u002Fbaselines\u002Fs3-bucket-policy-missing.md",386,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fcloudtrail-missing-events-troubleshooter\u002Fevals\u002Fbaselines\u002Fs3-bucket-policy-missing.md",{"path":90,"resourceType":69,"resourceTypeDesc":70,"sizeBytes":91,"sourceHtmlUrl":92},"evals\u002Fbaselines\u002Ftrail-logging-disabled.md",304,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fcloudtrail-missing-events-troubleshooter\u002Fevals\u002Fbaselines\u002Ftrail-logging-disabled.md",{"path":94,"resourceType":69,"resourceTypeDesc":70,"sizeBytes":95,"sourceHtmlUrl":96},"evals\u002Feval_config.yaml",48,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fcloudtrail-missing-events-troubleshooter\u002Fevals\u002Feval_config.yaml",{"path":98,"resourceType":69,"resourceTypeDesc":70,"sizeBytes":99,"sourceHtmlUrl":100},"evals\u002Fevals.json",1199,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fcloudtrail-missing-events-troubleshooter\u002Fevals\u002Fevals.json",{"path":102,"resourceType":69,"resourceTypeDesc":70,"sizeBytes":103,"sourceHtmlUrl":104},"evals\u002Fprompts\u002Fdata-events-not-enabled.md",1439,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fcloudtrail-missing-events-troubleshooter\u002Fevals\u002Fprompts\u002Fdata-events-not-enabled.md",{"path":106,"resourceType":69,"resourceTypeDesc":70,"sizeBytes":107,"sourceHtmlUrl":108},"evals\u002Fprompts\u002Forg-trail-shadowing.md",1651,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fcloudtrail-missing-events-troubleshooter\u002Fevals\u002Fprompts\u002Forg-trail-shadowing.md",{"path":110,"resourceType":69,"resourceTypeDesc":70,"sizeBytes":111,"sourceHtmlUrl":112},"evals\u002Fprompts\u002Fread-only-filter.md",1350,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fcloudtrail-missing-events-troubleshooter\u002Fevals\u002Fprompts\u002Fread-only-filter.md",{"path":114,"resourceType":69,"resourceTypeDesc":70,"sizeBytes":115,"sourceHtmlUrl":116},"evals\u002Fprompts\u002Fs3-bucket-policy-missing.md",1646,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fcloudtrail-missing-events-troubleshooter\u002Fevals\u002Fprompts\u002Fs3-bucket-policy-missing.md",{"path":118,"resourceType":69,"resourceTypeDesc":70,"sizeBytes":119,"sourceHtmlUrl":120},"evals\u002Fprompts\u002Ftrail-logging-disabled.md",1303,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fcloudtrail-missing-events-troubleshooter\u002Fevals\u002Fprompts\u002Ftrail-logging-disabled.md",{"path":122,"resourceType":69,"resourceTypeDesc":70,"sizeBytes":123,"sourceHtmlUrl":124},"examples\u002FREADME.md",5017,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fcloudtrail-missing-events-troubleshooter\u002Fexamples\u002FREADME.md",{"path":126,"resourceType":69,"resourceTypeDesc":70,"sizeBytes":127,"sourceHtmlUrl":128},"references\u002Fadvanced-patterns.md",5927,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fcloudtrail-missing-events-troubleshooter\u002Freferences\u002Fadvanced-patterns.md",{"path":130,"resourceType":69,"resourceTypeDesc":70,"sizeBytes":131,"sourceHtmlUrl":132},"references\u002Fbucket-policy-and-org-trail-reference.md",11194,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fcloudtrail-missing-events-troubleshooter\u002Freferences\u002Fbucket-policy-and-org-trail-reference.md",{"path":134,"resourceType":69,"resourceTypeDesc":70,"sizeBytes":135,"sourceHtmlUrl":136},"references\u002Fdiagnostic-commands.md",4491,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fcloudtrail-missing-events-troubleshooter\u002Freferences\u002Fdiagnostic-commands.md",{"path":138,"resourceType":69,"resourceTypeDesc":70,"sizeBytes":139,"sourceHtmlUrl":140},"references\u002Ferror-handling.md",534,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fcloudtrail-missing-events-troubleshooter\u002Freferences\u002Ferror-handling.md",{"path":142,"resourceType":69,"resourceTypeDesc":70,"sizeBytes":143,"sourceHtmlUrl":144},"references\u002Fevent-selectors-and-data-events-reference.md",10361,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fcloudtrail-missing-events-troubleshooter\u002Freferences\u002Fevent-selectors-and-data-events-reference.md",{"path":146,"resourceType":69,"resourceTypeDesc":70,"sizeBytes":147,"sourceHtmlUrl":148},"skill.usf.yaml",4679,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fcloudtrail-missing-events-troubleshooter\u002Fskill.usf.yaml",[150,157,164,171,178,185],{"skillNo":151,"name":152,"nameZh":6,"description":153,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":154,"categories":155,"keywords":156,"publishedAt":19},"01M7ADVD60X4PCAPKSE58P9NDC","xray-tracing-deployer","Deploys AWS X-Ray distributed tracing with production-grade configuration: X-Ray daemon deployment (EC2 systemd, ECS sidecar, EKS DaemonSet, Lambda built-in), SDK instrumentation (Java, Python, Node.js, Go, .NET) with annotations and metadata, sampling rules (default reservoir + rate vs custom rules with URL \u002F method \u002F service-name predicates), service map generation, trace query and retrieval, groups and insights, CloudWatch ServiceLens integration, IAM permissions (PutTraceSegments, GetSamplingRules), and latest features (Lambda Powertools tracing, OpenTelemetry \u002F ADOT Collector support, W3C trace context). Emits a READY_TO_DEPLOY checklist with every configuration item verified. Use when enabling X-Ray on a new application, adding tracing to ECS \u002F EKS \u002F Lambda, validating a sampling configuration, or generating daemon deployment CLI and IaC templates. Triggers: X-Ray, distributed tracing, X-Ray daemon, sampling rules, service map, X-Ray SDK, OpenTelemetry, ADOT, Lambda Powertools, CloudWatch ServiceLens.","https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fxray-tracing-deployer\u002FSKILL.md",[],[],{"skillNo":158,"name":159,"nameZh":6,"description":160,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":161,"categories":162,"keywords":163,"publishedAt":19},"01M7ADTVJ7DCBM9CB1FY51GH7J","wellarchitected-workload-auditor","Audits AWS Well-Architected Tool workloads for review staleness, per-pillar high-risk issue counts, milestone tracking gaps, and remediation plan completeness. Emits a deterministic verdict (STALE_REVIEW | HIGH_RISK | CONFIG_GAP | OK) per workload with per-pillar risk breakdown, milestone trend analysis, and specific remediation. Use when reviewing Well-Architected workloads, checking WA review freshness, auditing high-risk issues per pillar, validating milestone coverage, or tracking remediation plans.","https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fwellarchitected-workload-auditor\u002FSKILL.md",[],[],{"skillNo":165,"name":166,"nameZh":6,"description":167,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":168,"categories":169,"keywords":170,"publishedAt":19},"01M7ADT59G6FTTNZYHT2QRPNNP","wellarchitected-review-operator","Operates AWS Well-Architected Tool reviews end-to-end — creates workloads, runs pillar reviews (operational excellence, security, reliability, performance, cost optimization, sustainability, Prosperity), answers questions with risk-tier rationale, generates reports and improvement plans, creates milestones, and integrates with Trusted Advisor and Well-Architected Labs. Runs deterministic pre-checks (workload existence, lens availability, pillar coverage), emits the exact update-answer \u002F get-consolidated-report CLI behind a CONFIRM gate, and verifies risk-tier transitions. Emits READY | BLOCKED | COMPLETED. Use when creating a workload, answering pillar questions, generating an improvement plan, creating a milestone, or integrating with Trusted Advisor. Triggers: well-architected tool, well architected review, workload review, pillar, operational excellence, security, reliability, performance, cost optimization, sustainability, prosperity, improvement plan, milestone, trusted advisor.","https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fwellarchitected-review-operator\u002FSKILL.md",[],[],{"skillNo":172,"name":173,"nameZh":6,"description":174,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":175,"categories":176,"keywords":177,"publishedAt":19},"01M7ADSH5JA9QHNPPHQCD7EVA7","wafv2-web-acl-deployer","Provisions AWS WAFv2 Web ACLs with correct production defaults: scope selection (CLOUDFRONT vs REGIONAL), managed rule groups (AWSManagedRulesCommonRuleSet, SQLiRuleSet, LinuxRuleSet, WindowsRuleSet, IPReputationList, BotControlRuleSet, AmazonIpReputationList, ATP), custom rules (byte match, IP set, regex pattern, geo match, size constraint, rate-based), rule priority ordering, logging destinations (Kinesis Firehose, CloudWatch Logs, S3), resource association (ALB, API Gateway, CloudFront), rate-based rules with aggregate keys (IP, forwarded IP), Challenge and CAPTCHA actions, and account takeover prevention. Emits a READY_TO_DEPLOY checklist. Use when creating a Web ACL, attaching managed rules, configuring rate limiting, enabling WAF logging, associating a Web ACL with an ALB\u002FAPI Gateway\u002FCloudFront, or configuring CAPTCHA\u002FChallenge actions. Triggers: create WAF Web ACL, WAFv2, managed rule groups, WAF rate limiting, WAF logging, WAF CAPTCHA, WAF Challenge action, bot control, ATP managed rules.","https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fwafv2-web-acl-deployer\u002FSKILL.md",[],[],{"skillNo":179,"name":180,"nameZh":6,"description":181,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":182,"categories":183,"keywords":184,"publishedAt":19},"01M7ADRYFAT8R73FBNCHRC573X","wafv2-web-acl-auditor","Audits AWS WAFv2 Web ACL configurations to determine whether the ACL provides effective protection: default-action posture (Allow vs Block), managed-rule-group coverage gaps, rule effectiveness (BLOCK vs COUNT, shadow\u002Fbypass rules, stale exclusions), rate-based rule correctness, logging and visibility configuration, and text-transformation bypass vectors. Emits a deterministic verdict per Web ACL. Use when reviewing a WAFv2 Web ACL for security posture, checking managed-rule coverage, validating rate-limit configuration, auditing WAF logging, or hardening a WAF before production deployment. Triggers: WAF, WAFv2, Web ACL, managed rule group, AWSManagedRules, rate-based rule, CAPTCHA, Challenge, OverrideAction, Count mode, forwarded IP, Bot Control, ATP, text transformation, WAF logging, WAF visibility, OWASP, SQLi, XSS, RFI.","https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fwafv2-web-acl-auditor\u002FSKILL.md",[],[],{"skillNo":186,"name":187,"nameZh":6,"description":188,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":189,"categories":190,"keywords":191,"publishedAt":19},"01M7ADR8W7G72JX4KFGN03QK8Q","waf-rule-deployer","Provisions AWS WAFv2 rule sets with production defaults: Web ACL creation (CloudFront scope in us-east-1 vs Regional scope), rule groups (managed vs custom) with capacity planning in WCU (Web ACL Capacity Units, 1500 default per ACL), managed rule groups (AWSManagedRulesCommonRuleSet, AWSManagedRulesSQLiRuleSet, AWSManagedRulesAmazonIpReputationList, AWSManagedRulesLinuxRuleSet, AWSManagedRulesWindowsRuleSet, AWSManagedRulesUnixRuleSet), custom rules (byte-match, regex pattern set, geo-match, rate-based), IP set and regex pattern set resources, rule priority ordering (lowest number evaluated first), action types (allow, block, count, CAPTCHA, Challenge), bot control managed rule group, account takeover. Triggers: create WAF rule, WAF managed rule group, WAF custom rule, WAF byte match, WAF geo match, WAF rate based rule, WAF IP set, WAF regex pattern set, WAF WCU budget, WAF CloudFront ACL, WAF logging Kinesis Firehose, WAF bot control, WAF ATP, WAF label matching, WAF Challenge action, WAF CAPTCHA.","https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fwaf-rule-deployer\u002FSKILL.md",[],[]]