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

ExtractText From Flow File Attribute


ExtractText From Flow File Attribute



I need to apply regular expression on file file attribute not on flow file content using ExtractText processor.

How can i achive this.



Re: ExtractText From Flow File Attribute

Super Guru
@yazeed salem

By using Extract Text processor we are able to work only on flowfile content.

Use UpdateAttribute processor as this processor meant for updating the values of Existing attributes (or) add new attributes based on the existing/new values.

We can also use NiFi expression language in UpdateAttribute processor for regex use replaceAll .. etc string manupulation functions and apply your regex on the attributes of the flowfile.


if the Answer helped to resolve your issue, Click on Accept button below to accept the answer, That would be great help to Community users to find solution quickly for these kind of issues.

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