Open
Description
A typical multi-match might look like this:
grok {
match => { "message" => [ "%{MY_PATTERN:foo}", "%{OTHER_PATTERN:bar" ] }
}
Currently the array of matches is processed in order. Often this is good and necessary (if the patterns are a sequence of matches going from most specific to most generic), but for the case where it is simply different patterns for different strings, it would be useful if the grok filter could count the times each pattern is matched, and auto-reorder the patterns in order of the frequency they are matched and so optimise the efficiency of the grok filter.