[
https://issues.apache.org/jira/browse/NIFI-6670?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17308923#comment-17308923
]
Matt Burgess commented on NIFI-6670:
------------------------------------
Closing my PR for now due to inactivity and the fact that you can use a
GrokReader with Schema Access Strategy set to "Use String Fields from Grok
Expression" (the default) and a Grok Expression of
{{%{GREEDYDATA:message}}}
This creates a record with a field "message" containing the line. It will also
include additional fields for stack trace (on error) and the line as a "raw"
value in the "_raw" field (via NIFI-4081)
> Create a RecordReader that reads lines of text into single-field records
> ------------------------------------------------------------------------
>
> Key: NIFI-6670
> URL: https://issues.apache.org/jira/browse/NIFI-6670
> Project: Apache NiFi
> Issue Type: New Feature
> Components: Extensions
> Reporter: Matt Burgess
> Assignee: Matt Burgess
> Priority: Major
> Time Spent: 1h 50m
> Remaining Estimate: 0h
>
> It would be nice to have a reader that can take any textual input and treat
> each "line" as a single-field record. This is like CSVReader but there
> wouldn't be a field delimiter; rather, a property to specify the name of the
> field, and each line becomes a value for that field in the record.
> Additional capabilities could be added as well, such as skipping header
> lines, grouping lines together as a single field value, ignoring empty lines,
> etc.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)