Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

Need help using append replacement strategy in ReplaceText Processor on NiFi

Highlighted

Need help using append replacement strategy in ReplaceText Processor on NiFi

Rising Star

I am trying to take in an attribute, example "ID" attribute, from an incoming file and append it into the content of the file. I know that I can use ${allAttributes("ID")} as the replacement value in the ReplaceText processor and then change the replacement strategy to append and it works but I want to leave a " | " between the attribute "ID" and the rest of the message. Something like " ID | rest of message". Does someone have an idea of how this could be done?

1 REPLY 1
Highlighted

Re: Need help using append replacement strategy in ReplaceText Processor on NiFi

Super Guru

@Adda Fuentes why not use replaceText processor, search for entire content (^.*$)

then replace with ${yourattribute}|$1

Don't have an account?
Coming from Hortonworks? Activate your account here