# 1. Accelerator Central Logging Implementation and File Structures The following diagram details the ASEA central logging implementation: ![Logging](img/ASEA-Logging-Arch.png) ## 1.1. Accelerator Central Logging Buckets --- | Bucket Type | Bucket Name | Purpose | | -------------------- | --------------------------------------------------------- | ------------------------------------------------------- | | AES Encrypted Bucket | pbmmaccel-logarchive-phase0-aescacentral1-1py9vr4cdwuxu | ALB Logs - ALB's do not support logging to a KMS bucket | | KMS Encrypted Bucket | pbmmaccel-logarchive-phase0-cacentral1-1tr23emhncdzo | All other AWS Accelerator initiated logs | | AES or KMS Encrypted | aws-controltower-logs-123456789012-ca-central-1 | All Control Tower initiated logs | | AES or KMS Encrypted | aws-controltower-s3-access-logs-123456789012-ca-central-1 | S3 Access logs for the Control Tower logs bucket | --- ### 1.1.1. Notes - Every customer has two Accelerator logging buckets - Control Tower installations have an additional two Control Tower logging buckets - Customers could use any account name for their central logging account - Bucket name format is: {Accel-Prefix}-{Account-Name}-{Accel-Phase}-xxx{Region}-{Random} - {Accel-Prefix} defaults to 'asea' (previously 'pbmmaccel' for Canada) - {Accel-Phase} should always be 'phase0' - {region} should always be 'cacentral1' for Canada - {account} is likely to be 'log-archive' - xxx is either "aes" or "" (nothing) ## 1.2. Accelerator Bucket Folders --- | Log Type | Folder Path | Example | | ----------------------- | -------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | ELB (in AES bucket) | {account#}/elb-{elbname}/AWSLogs/{account#}/\* | | | VPC Flow Logs | {account#}/{vpc-name}/AWSLogs/{account#}/vpcflowlogs/{region}/{year}/{month}/{day}/\* | | | Macie Reports | {account#}/macietestobject | | | Cost and Usage Reports | {account#}/cur/Cost-and-Usage-Report/\* | | | Config History\* | AWSLogs/{account#}/Config/{region}/{year}/{month}/{day}/ConfigHistory/\* | | | Config Snapshot\* | AWSLogs/{account#}/Config/{region}/{year}/{month}/{day}/ConfigSnapshot/\* | | | GuardDuty | AWSLogs/{account#}/GuardDuty/{region}/{year}/{month}/{day}/\* | | | CloudWatch Logs\*\*\*\* | CloudWatchLogs/{year}/{month}/{day}/{hour}/\* | | | CloudTrail Digest\*\*\* | {org-id}/AWSLogs/{org-id}/{account#}/CloudTrail-Digest/{region}/{year}/{month}/{day}/\* | | | CloudTrail Insights\*\* | {org-id}/AWSLogs/{org-id}/{account#}/CloudTrail-Insights/{region}/{year}/{month}/{day}/\* | | | CloudTrail\*\*\* | {org-id}/AWSLogs/{org-id}/{account#}/CloudTrail/{region}/{year}/{month}/{day}/\* | | | CT S3 Access Logs | {no folders} | | | SSM Inventory | ssm-inventory/{ssm-inventory-type}/accountid={account#}/region={region}/resourcetype={rt}/\* |