Skip to content

Load balancer access logs

Load balancer access logs are stored in an S3 bucket.

There is a single load balancer per each ECS Cluster, each load balancer is storing its logs in a separate S3 bucket. The bucket name format is: BASE_NAME-CLUSTER_NAME-access-logs-AWS_REGION-AWS_ACCOUNT_ID ( eg. box-nonprod-access-logs-eu-west-1-123456789012)

One of the best ways to view the access logs is by using AWS Athena. You can find more details here: https://docs.aws.amazon.com/athena/latest/ug/application-load-balancer-logs.html You will have to replace your-alb-logs-directory with the bucket name, <ACCOUNT-ID> with you AWS account ID and <REGION> with your AWS region.