Skip to content

A simple python snippet to analyze AWS application load balancer (ALB) logs

License

Notifications You must be signed in to change notification settings

Sytex/py-alb-analyzer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

py-alb-analyzer

A simple python snippet to analyze AWS application load balancer (ALB) logs

Example usage

Download a bunch of ALB log files from S3 and analyze them for 502 errors:

$ s3_bucket="your-bucket-name" && prefix="/path/to/prefix/" && aws s3 ls s3://$s3_bucket/$prefix | colrm 1 31 | xargs -P 8 -I % aws s3 cp s3://$s3_bucket/$prefix% /download/path/
$ zcat /download/path/* | python py-alb-analyzer.py --filter elb_status_code=502

About

A simple python snippet to analyze AWS application load balancer (ALB) logs

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages