Use this when making sure cloud API activity is recorded.
Cloud Logging
Cloud logging records API calls, sign-ins and resource changes — AWS CloudTrail, Azure Activity Log, Google Cloud Audit Logs — and should be enabled everywhere and shipped to a protected central store.
1. Cloud logging: control-plane audit (CloudTrail, Activity Log), data access logs, flow logs, service logs.
2. Organisation-wide trails.
3. Immutable storage.
4. Forward to SIEM.
5. Alert on sensitive actions.
cloud API call → audit log → SIEM
Context & applicabilityCommon mistakes · platform/version boundaries
- Data access logs (S3 object, Key Vault, storage) not enabled.
- Logs stored in the same account an attacker controls.
- No alerts on disabling logging (CloudTrail
StopLogging, diagnostic settings deleted). - Retention shorter than investigation needs.
Operational reference
Fast context before you go deeper.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Checks Verify boundary
- AWS: CloudTrail organisation trail enabled in all regions, log file validation on.
- Azure: Activity log and Entra sign-in/audit logs exported to Log Analytics or SIEM.
- GCP: Admin Activity logs (always on) plus Data Access logs where needed.
- Logs stored in a separate account/subscription with restricted delete rights.
Step 2 Logs to enable Narrow the fault
| AWS | Azure | GCP |
|---|---|---|
| CloudTrail (all regions, org trail) | Activity Log + Entra sign-in/audit logs | Cloud Audit Logs |
| VPC Flow Logs | NSG/VNet flow logs | VPC Flow Logs |
| GuardDuty | Defender for Cloud | Security Command Center |
| S3/Storage access logs | Storage diagnostic logs | Data Access logs |
Send logs to a separate, locked-down account/subscription so an attacker cannot delete them.
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
- Enable audit logs in every account and region.
- Ship logs to a protected central store.
- Logs are needed before an incident, not after.
aws cloudtrail describe-trails— CloudTrailaz monitor diagnostic-settings list --resource <id>— Azure diagnostics- Logs forwarded to SIEM — central
ReferenceImportant terms & boundaries1 section · depth on demand
In depth
Cloud logging captures the activity in cloud environments: management API calls (who changed what), resource logs, network flow logs and identity sign-ins. It is the primary evidence for detecting misuse and investigating incidents in the cloud.
| Log | AWS | Azure | Google Cloud |
|---|---|---|---|
| Control plane | CloudTrail | Activity Log | Cloud Audit Logs |
| Network flows | VPC Flow Logs | VNet flow logs | VPC Flow Logs |
| Identity | IAM Identity Center/CloudTrail | Entra ID sign-in/audit logs | Cloud Identity logs |
| Threat detection | GuardDuty | Defender for Cloud | Security Command Center |
Enable organisation-wide trails, send logs to a separate, locked-down logging account/subscription, and protect them from deletion by workload administrators.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in Cloud Security → Cloud Logging. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://csrc.nist.gov/pubs/sp/800/210/final · confidence 94%