Skill 4.2.5

Analyzing logs with AWS services (for example, Amazon Athena, CloudWatch Logs Insights)

Key Concepts

Athena runs SQL on logs stored in S3 (CloudTrail, ALB and CloudFront access logs, VPC Flow Logs, S3 server access logs). Tables are defined in the Glue Data Catalog; partitioning by date (or partition projection) and columnar formats such as Parquet reduce the data scanned and the cost.

CloudWatch Logs Insights suits recent logs already in CloudWatch, with fast ad hoc queries. OpenSearch Service suits full-text search and interactive dashboards on high volumes, and CloudTrail Lake runs SQL over CloudTrail events without managing S3 tables.