How can I find an ELB access log file for a Classic Load Balancer or an Application Load Balancer in Amazon S3?
I need to find an Elastic Load Balancing (ELB) access log in the Amazon Simple Storage Service (Amazon S3) bucket that it's configured with. How can I locate an ELB access log file for a Classic Load Balancer or an Application Load Balancer?
"I need to find an Elastic Load Balancing (ELB) access log in the Amazon Simple Storage Service (Amazon S3) bucket that it's configured with. How can I locate an ELB access log file for a Classic Load Balancer or an Application Load Balancer?ResolutionOpen the Amazon Elastic Compute Cloud (Amazon EC2) console.In the navigation pane, under Load Balancing, choose Load Balancers.Select the load balancer where you want to search for your access log file.On the Description tab, scroll to the Attributessection, and then note the Amazon S3 location value in Access logs.**Note:**Location values use the format s3bucket/prefix. However, not all location values contain a prefix.Open the Amazon S3 console, and then enter the bucket name without the prefix (if it contains one) in Search for buckets.Select your S3 bucket to open the Bucketpage.If your bucket name contains a prefix, enter the prefix in the Amazon S3 search. Then, select the appropriate prefix name from the search results.Select the path AWSLogs/aws-account-id/elasticloadbalancing/region/yyyy/mm/dd/ where:aws-account-id = Account ID where the load balancer is locatedregion = Region where the load balancer is locatedyyyy/mm/dd = DateAll logs from the specified date appear. If you have multiple load balancers storing logs to this location, use the search bar to find logs for your specific load balancer. Enter the beginning of the file name, up to and including the load balancer name.**Note:**Be sure to use the appropriate file name format for Classic Load Balancers or Application Load Balancers. For Classic Load Balancers, load-balancer-nameis the name of the Classic Load Balancer. For Application Load Balancers, load-balancer-idis the final three elements of the Application Load Balancer's ARN, with all slashes replaced by periods.After you filter logs by name, use the timestamp in the file names to find logs from the specified time frame.**Note:**The timestamp in the file name indicates the end time of the logging interval in UTC. However, timestamps in the Amazon S3 console are set to the time zone of your local machine.You might see multiple logs with the same end time. Multiple nodes are available for requests, and each node emits its own log for the requests that it receives. Aggregate these separate logs to get a more complete view of requests during the specified time.Related InformationAccess Logs for Your Classic Load BalancerQuerying Classic Load Balancer LogsAccess Logs for Your Application Load BalancerQuerying Application Load Balancer LogsHow do I analyze my Application Load Balancer access logs using Athena?Follow"