I'm trying to convert whole of flowfile content into an attribute.
Regex I'm using is '.*'. for this I'm using extractText.I have enabled multiline option as well but it only captures first line of flowfile. How can this be resolved.
Configure ExtractText processor as below:
Enable DOTALL Mode
Enable Multiline Mode
And you need configure `Maximum Buffer Size,Maximum Capture Group Length` property values based on your flowfile size and how much you are trying to extract.
Add new property as
Then check the content attribute will have all the content of flowfile as attribute value.
**But i recommend not to keep entire content as attribute value because all attributes are hold in memory this will cause performance issues in NiFi.
Refer to this link for more details regards to keeping too many attributes in the flow.