1 Answer
- Newest
- Most votes
- Most comments
1
Hello.
The error message suggests that the $.duration is not being interpreted as a valid number, which might be happening because of the filter pattern or a mismatch with the actual log event format.
Ensure that the duration placeholder correctly matches the actual logs. For example, if your log line is something like:
some-text uri=/contacts/123 duration=456
Then your filter pattern might look something like:
FilterPattern: "... uri=%contacts% duration=$[duration]"
Regards, Andrii
Relevant content
- asked 5 years ago
- asked a year ago
Hi Andrii, Thanks for your answer. Finaly I found the issue:
The Attribute MetricValue must be $duration instead of $.duration. The AWS Documentation was in this case not so helpfull, because this case is not handled there.
Regards Oliver