If the match succeeds then more information can be obtained via the start, end, and group methods.
true
165166167168169170171172173174175
} int numMatches = 0; for (Object value : values) { matcher.reset(value.toString()); if (!findSubstrings) { if (matcher.matches()) { numMatches++; if (numMatches > maxMatches) { LOG.debug("grok failed because it found too many matches for values: {} for grok command: {}", values, renderedConfig); return false;