How to Extract Text from FlowFiles in Apache NiFi Using ExtractText
Hi ,
I have stream data (GetHDFS will be running continuosly ) which contains number of lines.
e.g:
<start>this is 123_@":text coming from [hdfs file="/a/b/c" and' the; '''', "", file is streamed. The location=["/location"] and log is some.log"] linedelimited.
A stream of above lines of data will be in file
I have to extract text from above message
[hdfs file="/a/b/c" and' the; '''', "", file is streamed. The location=["/location"] and log is some.log"]
I tried using a extract text processor and used custom property
extract: ([hdfs.*log"]).
I tried the above in java regex evaluator, it shows correct text extracted. but when I run the flow, output gets the complete text.
expected: [hdfs file="/a/b/c" and' the; '''', "", file is streamed. The location=["/location"] and log is some.log"]
actual : <start>this is 123_@":text coming from [hdfs file="/a/b/c" and' the; '''', "", file is streamed. The location=["/location"] and log is some.log"] linedelimited.
Please help me to correct the regex to extract correct text.

