Deleting Cloudwatch logs using boto3

Viewed 167

I am trying to delete Cloudwatch logs irrespective of the Log group. Is there any method available with boto3 using which I can search for a pattern(keyword) in the Log group name?

1 Answers

You'll need to call describe_log_groups() and do the filtering within your code.

The only filter available is the ability to specify a logGroupNamePrefix.

Related