Metricfilter filter pattern. Dec 31, 2024 · To achieve both pattern matching and excl...
Metricfilter filter pattern. Dec 31, 2024 · To achieve both pattern matching and exclusion in a metric filter’s filter pattern, a bit of ingenuity is required. For more information, see Configuring metric values for a metric filter. This value can be null. Here is an example of the log event: { "httpMethod": "GET", " When creating a metric filter pattern to match log events containing "ERROR" and a specific pattern value, you need to use the appropriate syntax that CloudWatch Logs supports. log_group_name - (Required) The name of the log group to associate the metric filter with. When you create a metric from a log filter, you can Defaults to the Region set in the provider configuration. When creating a metric filter pattern to match log events containing "ERROR" and a specific pattern value, you need to use the appropriate syntax that CloudWatch Logs supports. You use the filter pattern to specify what to look for in the log event message. name - (Required) A name for the metric filter. The following are some sample patterns for creating filters for WAF logs. gbkerk mrrrwa yavvsfr kimm emtem ovppp iscsfy fduo mvmgjhj vozuctpx