Home icon

Amazon S3 audit logging, Part 2: Centralized logging and analysis of S3 data events in AWS CloudTrail for security and compliance

Storage Blog



This article explains how to configure AWS CloudTrail data events for S3 to track user identity and access patterns, then analyze logs using Amazon Athena with partition projection for cost-effective security investigations.

  • CloudTrail data events capture full IAM identity context for S3 operations including user, role, MFA status
  • Set up organization-wide CloudTrail trail delivering logs to centralized S3 bucket with lifecycle policies
  • Create Athena table with partition projection to query millions of events without provisioning infrastructure
  • Eight query patterns provided: user activity, cross-account access, failed attempts, bucket activity, deletes, assumed roles, data transfer, source IP analysis
  • Partition pruning on account, region, timestamp columns reduces query costs by minimizing data scanned
  • Security best practices include log file validation, KMS encryption, S3 Object Lock for tamper-proof retention
  • CloudTrail charges $0.10 per 100,000 data events; no free tier unlike management events

This post provides practical guidance for implementing identity-driven S3 audit logging to support security investigations and compliance requirements, complementing server access logs and metadata tracking covered in the three-part series.



Go to article

The AWS News Feed is currently looking for gold sponsors. If you want to support the AWS community and reach a large audience of AWS professionals, consider sponsoring the AWS News Feed.

Related articles

May 27
2026
Amazon S3 audit logging, Part 1: Analyzing server access logs with Amazon Athena for performance insights
Jul 9
2024
Amazon S3 Express One Zone now supports logging of all events in AWS CloudTrail
Aug 16
2024
Using AWS CloudTrail data events to audit your Amazon SNS and Amazon SQS workloads
Jul 9
2024
Monitor data events in Amazon S3 Express One Zone with AWS CloudTrail

The AWS News Feed is currently looking for silver sponsors. If you want to support the AWS community and reach a large audience of AWS professionals, consider sponsoring the AWS News Feed.