Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Track number of failed matches when using multiple pattern per field #150

Open
jsvd opened this issue Oct 21, 2019 · 0 comments
Open

Track number of failed matches when using multiple pattern per field #150

jsvd opened this issue Oct 21, 2019 · 0 comments

Comments

@jsvd
Copy link
Member

jsvd commented Oct 21, 2019

when matching one field with multiple patterns, like:

  grok {
    match => {
      "message" => [
        "%{NUMBER:data}",
        "%{WORD:data}",
        "%{DATE}"
      ]
    }
  }

It'd be useful to know how many times an event fails to match. this is specially useful if break_on_match is enabled (which is by default). Knowing this can help the user reorder the expressions if the specificity allows to improve performance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant