With #53 we lost the ability to have named group captures with underscore like (?<test_field>test).
java-grok had the support as long as we used the com.google.code.regexp.Pattern.
Now with java.util.regex.Pattern we use the java regex engine which does not support underscores:
https://docs.oracle.com/javase/7/docs/api/java/util/regex/Pattern.html#groupname
A capturing group can also be assigned a "name", a named-capturing group, and then be back-
referenced later by the "name". Group names are composed of the following characters. The first
character must be a letter.
The uppercase letters 'A' through 'Z' ('\u0041' through '\u005a'),
The lowercase letters 'a' through 'z' ('\u0061' through '\u007a'),
The digits '0' through '9' ('\u0030' through '\u0039'),
This broke backward compatibility with already stored patterns.
Preferable fix was to bring back com.google.code.regexp.Pattern.
With #53 we lost the ability to have named group captures with underscore like
(?<test_field>test).java-grokhad the support as long as we used thecom.google.code.regexp.Pattern.Now with
java.util.regex.Patternwe use the java regex engine which does not support underscores:https://docs.oracle.com/javase/7/docs/api/java/util/regex/Pattern.html#groupname
This broke backward compatibility with already stored patterns.
Preferable fix was to bring back
com.google.code.regexp.Pattern.