Tests the filter pattern of a metric filter against a sample of log event messages¶
Description¶
Tests the filter pattern of a metric filter against a sample of log event messages. You can use this operation to validate the correctness of a metric filter pattern.
Usage¶
Arguments¶
-
filterPattern[required] A symbolic description of how CloudWatch Logs should interpret the data in each log event. For example, a log event can contain timestamps, IP addresses, strings, and so on. You use the filter pattern to specify what to look for in the log event message.
-
logEventMessages[required] The log event messages to test.
Value¶
A list with the following syntax:
list(
matches = list(
list(
eventNumber = 123,
eventMessage = "string",
extractedValues = list(
"string"
)
)
)
)