Archimedes Trajano Asked: 2020-10-17 11:37:04 +0800 CST2020-10-17 11:37:04 +0800 CST 2020-10-17 11:37:04 +0800 CST How do you get a metric of cloudwatch log group size? 772 I want to track and alert if my logs go awry. But I can't find a way of tracking the stored bytes for a log group. Is it possible to even add that as a metric? amazon-web-services amazon-cloudwatch 1 Answers Voted Best Answer Alexander B 2020-10-17T23:29:50+08:002020-10-17T23:29:50+08:00 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.
The supported Metrics for CloudWatch log groups that might suit your use case are
IncomingBytes
andIncomingLogEvents
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
.