Last active
December 16, 2021 21:09
-
-
Save z0ph/b3c65693727bda6fac3e7d5320b451b4 to your computer and use it in GitHub Desktop.
Find AWS CloudWatch LogGroups size + retention | sorted
This file contains hidden or 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
aws logs describe-log-groups \ | |
--query "logGroups[*].{LogGroup:logGroupName,VolumeSize:storedBytes,RetentionInDays:retentionInDays} | reverse(sort_by(@, &VolumeSize))" \ | |
--output table |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment