[
https://issues.apache.org/jira/browse/NIFI-4081?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16061428#comment-16061428
]
ASF GitHub Bot commented on NIFI-4081:
--------------------------------------
Github user bbende commented on a diff in the pull request:
https://github.com/apache/nifi/pull/1921#discussion_r123831362
--- Diff:
nifi-nar-bundles/nifi-standard-services/nifi-record-serialization-services-bundle/nifi-record-serialization-services/src/main/java/org/apache/nifi/grok/GrokRecordReader.java
---
@@ -89,6 +93,7 @@ public Record nextRecord() throws IOException,
MalformedRecordException {
// the next call to nextRecord()) or we will attach it to the
previously read record.
String stackTrace = null;
final StringBuilder toAppend = new StringBuilder();
+ final StringBuilder raw = new StringBuilder(line);
--- End diff --
I think this needs to be updated slightly based on some changes in master,
looks like the beginning of this method changed a little bit and the 'line'
variable is no longer visible here
> GrokReader - add the option to keep raw message in a dedicated field
> --------------------------------------------------------------------
>
> Key: NIFI-4081
> URL: https://issues.apache.org/jira/browse/NIFI-4081
> Project: Apache NiFi
> Issue Type: Improvement
> Components: Extensions
> Affects Versions: 1.3.0
> Reporter: Pierre Villard
> Assignee: Pierre Villard
> Priority: Minor
>
> In some use cases, it can be useful to keep the raw message in the record. I
> propose to add a parameter to the GrokReader allowing the user to store in
> the field {{rawMessage}} the raw content of the record (stack trace included
> if any).
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)