Closed my2ndhead closed 7 years ago
Can't be fixed in java-grok, as this is a http://www.docjar.com/html/api/java/util/regex/Matcher.java.html issue:
if (ASCII.isLower(nextChar) || 779 ASCII.isUpper(nextChar) || 780 ASCII.isDigit(nextChar)) { 781 gsb.append(nextChar);
Hi
When using a named capturing group, the name should support underlines e.g.:
(?.*)
If I read the code correctly, this pattern just needs the _ added:
https://github.com/thekrakken/java-grok/blob/master/src/main/java/io/thekraken/grok/api/GrokUtils.java#L36
Thanks Mika>