Ugly Green Logo

4n6ir.com

Container Registry

GitHub Organization

Grafana Cloud

Slack Workspace

February 15, 2025

Current State of CloudWatch Logs for an Organization

by John Lukach

One of the first questions is always: what logs do I have available?

https://github.com/jblukach/botoplus

I created a Jupyter Notebook that uses the botoplus Python library to gather the state of CloudWatch Logs across an Amazon Web Services (AWS) Organization for every account and region.

Cost is calculated based on Standard and Infrequent access for the first 10 TB of data ingestion pricing.

Final calculations are outputs that include the following information:

Too often, Log Groups are automatically created without retention configured. Thus, I needed a way to enforce the retention policy. Does anyone ever clean up CloudWatch Logs?

The final botoplus code example deletes empty Log Groups that are not protected from deletion.

/aws/lambda/aws-controltower-NotificationForwarder
tags: aws - botoplus - cloudwatch - cwl - jupyter - logs - notebook - python