Cannot add Metrics Dimension while creating metric filter in CloudWatch Log Group

0

When creating metric filter from CloudWatch Log Group I am getting "dimension value is invalid" even when dimension value seems to be perfectly fine. So I am not able to create a metrics with Dimensions.

Enter image description here

1 Answer
2
Accepted Answer

Hi, the dimension should be the path to one of your json properties, for example if your log entries look like { "ip"="127.0.0.1", "endpoint" = "abc" }, your dimension could be $.endpoint

profile pictureAWS
Jsc
answered 3 months ago
profile picture
EXPERT
reviewed a month ago
profile picture
EXPERT
reviewed 3 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions