From 67610482985c37064f4bc4c779c41a362c5abc19 Mon Sep 17 00:00:00 2001 From: Sergio Garcia <38561120+sergargar@users.noreply.github.com> Date: Tue, 14 Mar 2023 14:46:34 +0100 Subject: [PATCH] fix(cloudwatch): solve inexistent filterPattern error (#2087) --- prowler/providers/aws/services/cloudwatch/cloudwatch_service.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/prowler/providers/aws/services/cloudwatch/cloudwatch_service.py b/prowler/providers/aws/services/cloudwatch/cloudwatch_service.py index aa3289cd..230b39ad 100644 --- a/prowler/providers/aws/services/cloudwatch/cloudwatch_service.py +++ b/prowler/providers/aws/services/cloudwatch/cloudwatch_service.py @@ -131,7 +131,7 @@ class Logs: MetricFilter( name=filter["filterName"], metric=filter["metricTransformations"][0]["metricName"], - pattern=filter["filterPattern"], + pattern=filter.get("filterPattern", ""), log_group=filter["logGroupName"], region=regional_client.region, )