/cloudwatch-log-stream-reaper

This Lambda function solves a problem with CloudWatch log retention. When setting log retention, the individual log messages are deleted. However, the log *streams* are not deleted when they are empty. This isn't an issue for log streams that re-use a stream. However, for services that create new log streams per container instance (such as Lambda or Fargate), you can run into issues with a myriad of empty log streams.

Primary LanguagePython

Watchers