0Pricing
AWS Security Academy · Lesson

Centralized Log Archive Accounts

Isolate logs in a separate account out of an attacker's reach.

Centralized Log Archive Accounts is a free AWS Security Academy lesson on CoddyKit — lesson 4 of 4. You can read the complete lesson below for free — then practise it hands-on in the browser with a built-in code editor and a 24/7 AI tutor. It is part of the AWS Security Academy learning path, one of 4 lessons in the course, and your progress syncs across the web and the CoddyKit app.

Isolating the Evidence

The strongest log protection puts logs in a separate AWS account dedicated to archival, isolated from the accounts that run workloads. If an attacker compromises a production account, they still cannot reach or delete the logs stored in an account they do not control. This isolation is a cornerstone of mature security architecture.

The Log Archive Account

In a multi-account organization, a dedicated Log Archive account receives logs from every other account. AWS Control Tower creates exactly this account by default in its landing zone, reflecting how strongly AWS recommends the pattern. Centralizing logs here gives one protected home for all audit evidence.

Organization Trails

An organization trail in CloudTrail captures events from all accounts in the organization and delivers them to a single bucket, typically in the Log Archive account. Member accounts cannot disable or modify the organization trail, so even a fully compromised member account cannot stop its events from being recorded centrally.

Cross-Account Delivery

Logs are delivered cross-account by granting the logging services write access to the central bucket through a bucket policy. The workload accounts can write logs but cannot read or delete them, because read and delete permissions live only with security roles in the archive account. This cleanly enforces separation of duties.

Restricting Access to the Archive

Very few principals should access the Log Archive account, and ideally none of them are the same people who administer workloads. Access is limited to a small security or audit team, often through tightly scoped cross-account roles. Minimizing who can touch the archive shrinks the chance the evidence is compromised.

SCPs to Protect Logging

Service Control Policies (SCPs) at the organization level can deny actions like cloudtrail:StopLogging, cloudtrail:DeleteTrail, and deletion of the log bucket across all member accounts. Because SCPs cap permissions even for account admins, they prevent anyone in a member account from disabling logging, no matter their IAM permissions.

{
  "Effect": "Deny",
  "Action": ["cloudtrail:StopLogging", "cloudtrail:DeleteTrail"],
  "Resource": "*"
}

Immutable Central Storage

The central bucket should combine everything from the previous lesson: Object Lock in Compliance mode, versioning, KMS encryption, and a deny-delete policy. Concentrating all logs in one place is only safe if that place is immutable and tightly controlled, so the archive account applies the strongest bucket hardening available.

Aggregating Other Logs

Beyond CloudTrail, you can centralize Config, VPC Flow Logs, and application logs into the archive account too, often via cross-account delivery or replication. A single, protected archive for all log types simplifies retention, monitoring, and investigation while keeping every source out of an attacker's reach.

Querying Centralized Logs

Security teams query the centralized logs with Athena from the archive account or a dedicated security tooling account. Because all accounts' logs sit together, one query can hunt across the entire organization, making org-wide investigation and threat hunting far more powerful than checking each account separately.

Resilience and Retention

Centralization also aids resilience and retention: lifecycle rules move aging logs to cheaper storage like Glacier while Object Lock preserves immutability, and cross-region replication can guard against regional loss. The archive becomes a durable, long-lived, tamper-proof record that satisfies even strict compliance retention requirements.

The Complete Picture

A centralized, immutable Log Archive account, fed by an organization trail, protected by SCPs, and locked with Object Lock, is the gold standard for log integrity. It ensures that no matter what an attacker does in a workload account, the truth of their actions survives in a place they can never reach.

Quick Check

Test your centralized-logging knowledge.

Recap

A dedicated Log Archive account isolates evidence from workload accounts. An organization trail centralizes CloudTrail to its bucket, which member accounts cannot disable. Cross-account bucket policies let accounts write but not delete, SCPs deny StopLogging/DeleteTrail org-wide, and Object Lock plus encryption make storage immutable. The result is tamper-proof, query-ready, compliant log retention.

Frequently asked questions

Is the “Centralized Log Archive Accounts” lesson free?

Yes — the full text of “Centralized Log Archive Accounts” is free to read here on the web, and the AWS Security Academy course includes 4 lessons in total. To practise it interactively (a built-in code editor and a 24/7 AI tutor) and unlock the rest of the AWS Security Academy course, upgrade to CoddyKit PRO.

What will I learn in “Centralized Log Archive Accounts”?

Isolate logs in a separate account out of an attacker's reach. You practise AWS Security Academy with hands-on code you run directly in the browser, and a 24/7 AI tutor answers your questions as you work through the lesson.

Do I need any experience to start AWS Security Academy?

No prior experience is required. AWS Security Academy on CoddyKit is structured for beginners through advanced learners; this is — lesson 4 of 4, so you can start here or from the beginning and move at your own pace.

How long does the “Centralized Log Archive Accounts” lesson take?

Most CoddyKit lessons take about 5–10 minutes. Each one is bite-sized and interactive, so you make steady progress and pick up exactly where you left off across the web and the app.

Can I write and run code in this AWS Security Academy lesson?

Yes. Every AWS Security Academy lesson includes a built-in code editor, so you write and run real code right in your browser and get instant AI feedback — no local setup required.

All lessons in this course

  1. Why Log Tampering Is a Threat
  2. CloudTrail Log File Validation
  3. Locking Down Log Storage Buckets
  4. Centralized Log Archive Accounts
← Back to AWS Security Academy