[
https://issues.apache.org/jira/browse/NIFI-4094?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16056417#comment-16056417
]
Pierre Villard commented on NIFI-4094:
--------------------------------------
NiFi relies on an external library for Grok evaluation. The definition of a
Grok pattern in this library can be found here:
https://github.com/thekrakken/java-grok/blob/master/src/main/java/io/thekraken/grok/api/GrokUtils.java#L22
Unless an improvement is submitted/merged in this external library, not sure
that's something we can quickly address.
> GrokReader does not allow named capture groups with underscores in name
> -----------------------------------------------------------------------
>
> Key: NIFI-4094
> URL: https://issues.apache.org/jira/browse/NIFI-4094
> Project: Apache NiFi
> Issue Type: Bug
> Components: Core Framework
> Affects Versions: 1.3.0
> Reporter: Mika Borner
> Priority: Minor
>
> When writing a regular expression with a named capture group, underscore
> can't be used.
> Typically, underscore is a valid character for capture groups. As avro also
> supports underscores, and GrokReader is used to write into avro schemas, this
> should be fixed.
> Example of non-working regex:
> (?<my_namedcapturegroup>.*)
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)