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.
More on Observability & Incident Patterns
What network metrics do you monitor in production?IntermediateWhich Prometheus exporters and metrics help with network visibility?IntermediateHow do you build SLOs for a network-dependent service?AdvancedWhat do you use VPC Traffic Mirroring or packet capture in production for?IntermediateWalk me through how you would handle a sudden network-related outage.AdvancedWhat are common causes of "everything is slow but nothing is down"?Intermediate