Created
January 30, 2018 10:16
-
-
Save karia/57153ca44cddb2419872bff15da32600 to your computer and use it in GitHub Desktop.
5xx status count for AWS ALB log file
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
echo "day,total,5xx" | |
for i in `seq -w 01 10` | |
do | |
echo ${i},`gzcat ${i}/*.gz | wc -l`,`gzcat ${i}/*.gz | awk '$9 ~ /^5/{print $9}' | wc -l` | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Get same data from CloudWatch metrics