aws logs test-metric-filter
Tests the filter pattern of a metric filter against a sample of log event messages. AWS CLI reference
2 options Its page in the AWS CLI reference
Options
--filter-patternA symbolic description of how CloudWatch Logs should interpret the data in each log event.--log-event-messagesThe log event messages to test.