v1

latestOpenAPI 3.0.0Apache 2.0 License2026-07-1448206184.6 KB

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.

post/#X-Amz-Target=Logs_20140328.TestMetricFilter

Headers

X-Amz-Target'Logs_20140328.TestMetricFilter' required

Request body

filterPatternstring 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.

logEventMessagesEventMessage[] required

The log event messages to test.

Response

Success