Skill 1.2.2

Configure logging for AWS services and applications (for example, by configuring an AWS CloudTrail trail for an organization, by creating a dedicated Amazon CloudWatch logging account, by configuring the Amazon CloudWatch Logs agent)

Key Concepts

An organisation trail, created from the management account or a delegated administrator, logs all member accounts (multi-Region) to a bucket in the log archive account; members can see but not modify it. Enable log file integrity validation, SSE-KMS encryption and optionally delivery to CloudWatch Logs. Add data events selectively with advanced event selectors.

For a dedicated logging account, use CloudWatch cross-account observability or subscription filters (to Kinesis Data Streams, Firehose or a cross-account destination). The CloudWatch agent needs an instance profile with CloudWatchAgentServerPolicy, a JSON config listing log files and metrics (store it in Parameter Store and push it with Systems Manager), and network access to CloudWatch.