Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Apache NiFi, write attribute to flowfile content

Tags:

apache-nifi

Is there any option to write an attribute of a flow file as a content without using the AttributesToJSON processor?

like image 343
B. Pesevski Avatar asked Jan 27 '23 01:01

B. Pesevski


1 Answers

Depends what the format of the content is and where you want the attribute to go.

If you just want simply get an attribute value in the content and replace whatever was there, then ReplaceText with the Replacement Value of ${my.attribute} will make the flow file content be the value of my.attribute.

like image 141
Bryan Bende Avatar answered Mar 24 '23 04:03

Bryan Bende