How To Improve AWS Web Server Performance by Checking Your ALB Access Logs

Abidul Ramadan
DevOps Dudes
Published in
3 min readMay 6, 2021

--

Photo by Sigmund on Unsplash

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:

--

--

Abidul Ramadan
DevOps Dudes

I write about my experiences whether it was tech or about solutions and hacks of life. https://www.buymeacoffee.com/abidulrmdn