You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "Otto Fowler (JIRA)" <ji...@apache.org> on 2018/04/12 15:38:00 UTC

[jira] [Commented] (NIFI-5077) Grok pattern match presenting null values

    [ https://issues.apache.org/jira/browse/NIFI-5077?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16435789#comment-16435789 ] 

Otto Fowler commented on NIFI-5077:
-----------------------------------

That return value, is what is returned from the grok library.  If there is a bug it is either in the library itself or the expression from what I can see.

> Grok pattern match presenting null values
> -----------------------------------------
>
>                 Key: NIFI-5077
>                 URL: https://issues.apache.org/jira/browse/NIFI-5077
>             Project: Apache NiFi
>          Issue Type: Bug
>          Components: Core Framework
>    Affects Versions: 1.6.0
>         Environment: CentOS 7
>            Reporter: Ramon de Graaff
>            Assignee: Otto Fowler
>            Priority: Major
>         Attachments: grok.xml
>
>   Original Estimate: 24h
>  Remaining Estimate: 24h
>
> Pattern matches but also attaches null values.
> grok-pattern:
> {{TEST %\{A}|%\{B}}}
> {{A %\{INT:test}}}
> {{B %\{INT:test}}}
> {{INT (?:[+-]?(?:[0-9]+))}}
> flowfile-content:
> {{1}}
> Flow file attributes after match:
> {{grok.A}}
> {{1}}
> {{grok.TEST}}
> {{1}}
> {{grok.test}}
> {{[1, null]}}
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)