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
- Accepted Answerasked 4 months ago
- Accepted Answerasked a year ago
- asked 4 years ago
- AWS OFFICIALUpdated 10 months ago
- AWS OFFICIALUpdated 3 years ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 5 months 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