I'm trying to create a metric filter in a CloudWatch template which includes a colon:
e.g.
TotalLocationFound:
Type: AWS::Logs::MetricFilter
Properties:
FilterPattern: "abc_found: True"
LogGroupName: "/aws/lambda/blah"
MetricTransformations:
-
MetricValue: "1"
MetricNamespace: "ProductionClient"
MetricName: "TotalAbcFound"
It seems to take issue with the filter pattern. I can use that same pattern from the console but when I deploy using CloudWatch command line I get this error:
Invalid metric filter pattern (Service: AWSLogs; Status Code: 400; Error Code: InvalidParameterException
Playing with it seems to point to the issue being the :
Thanks