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?
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?
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.