Interview Prep/Networking/Observability & Incident Patterns

How do you analyze ALB access logs quickly?

IntermediateProductionObservability & Incident Patterns
Answer

Enable logs to S3, create an Athena table, and query by status code, target and latency.

SELECT elb_status_code, target_status_code, count(*) c, avg(target_processing_time) avg_t
FROM alb_logs WHERE time > date_format(now() - interval '1' hour, '%Y-%m-%dT%H')
GROUP BY 1,2 ORDER BY c DESC;

elb_status_code=504 with target_processing_time=-1 means the target never responded.

All Networking questions Roadmap: Networking for DevOps

More on Observability & Incident Patterns