View All Public Notes

List AWS Cloudwatch loggroup size with AWS CLI


aws logs describe-log-groups --query "logGroups[*].{LogGroup:logGroupName,VolumeSize:storedBytes,RetentionInDays:retentionInDays} | reverse(sort_by(@, &VolumeSize))" --output table --profile $profile --region $region


#aws #bash-productivity #p