How To Improve AWS Web Server Performance by Checking Your ALB Access Logs
If you have a setup of an AWS infrastructure for your web platform. Then you’ve probably noticed some performance issues that might differ from older times where you see an increase over the days, or maybe you have multiple regions and you’re wondering why some regions are better than others.
In this case, try to look at what you’re load balancer is receiving, detecting, delegating, and responding to understand where’s the hiccup happening. (of course, we’re assuming that you’ve already checked the code for performance issues first).
This is going to be a very actionable blog. Step by step to gain access to the logs.
How to enable the logs
- Enable your ALB’s access log, or any other load balancer setup you’re using in AWS
- Make sure the logs are being sent to S3
- Now go to Athena (An interactive query service that makes it easy to analyze data in Amazon S3 using standard SQL)
- Click
Connect data source
in Athena, which will give you something like this: