How do you get a metric of cloudwatch log group size?

Solution 1:

The supported Metrics for CloudWatch log groups that might suit your use case are IncomingBytes and IncomingLogEvents for event ingestion.

If you want to monitor event forwarding to your subscribers as well there are metrics available too.

See full documentation on supported metrics: https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/CloudWatch-Logs-Monitoring-CloudWatch-Metrics.html

The actual log group size seems to only be available via API decribe-log-groups.