[
https://issues.apache.org/jira/browse/NIFI-4136?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16065440#comment-16065440
]
ASF GitHub Bot commented on NIFI-4136:
--------------------------------------
GitHub user pvillard31 opened a pull request:
https://github.com/apache/nifi/pull/1955
NIFI-4136 Add a failure option to unmatch behavior options in GrokReader
Thank you for submitting a contribution to Apache NiFi.
In order to streamline the review of the contribution we ask you
to ensure the following steps have been taken:
### For all changes:
- [X] Is there a JIRA ticket associated with this PR? Is it referenced
in the commit message?
- [X] Does your PR title start with NIFI-XXXX where XXXX is the JIRA number
you are trying to resolve? Pay particular attention to the hyphen "-" character.
- [X] Has your PR been rebased against the latest commit within the target
branch (typically master)?
- [X] Is your initial contribution a single, squashed commit?
### For code changes:
- [X] Have you ensured that the full suite of tests is executed via mvn
-Pcontrib-check clean install at the root nifi folder?
- [X] Have you written or updated unit tests to verify your changes?
### Note:
Please ensure that once the PR is submitted, you check travis-ci for build
issues and submit an update to your PR as soon as possible.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/pvillard31/nifi NIFI-4136
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/nifi/pull/1955.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #1955
----
commit 33ec5335a8c6c3ae9d8bcf7421219df00ef16932
Author: Pierre Villard <[email protected]>
Date: 2017-06-27T20:41:41Z
NIFI-4136 Add a failure option to unmatch behavior options in GrokReader
----
> GrokReader - Add a failure option to unmatch behavior options
> -------------------------------------------------------------
>
> Key: NIFI-4136
> URL: https://issues.apache.org/jira/browse/NIFI-4136
> Project: Apache NiFi
> Issue Type: Improvement
> Components: Extensions
> Reporter: Pierre Villard
> Assignee: Pierre Villard
>
> At the moment, when using the GrokReader, if a line does not match the grok
> expression (and is not part of a stack trace), the line can be either ignored
> (the line will be completely skipped) or appended to the last field from the
> previous line.
> In the case where appending is not desired and that data should not be
> ignored/deleted, we should add the option to route the full flow file to the
> failure relationship. This way the flow file could be treated in a different
> way (for example with SplitText and ExtractGrok to isolate the incorrect
> lines and re-route the correct lines back to the Record processors).
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)