I have tried replceText processor to remove first 5 letters but it doesn't work..Please suggest me the best way to remove first 5 letters in NiFi
Try with below configurations of Replace Text processor:-
Empty string set
Maximum Buffer Size
Input Flowfile Content:-
Output Flowfile Content:-
we are removing first 5 characters and replacing them with empty string, as you can see below we have removed https(first 5 characters).
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.
if you are having url as attribute to the flowfile then you can use update attribute processor with replaceFirst function to replace 5 characters with empty string.
I'm having url attribute to the flowfile with value as
Now i'm using update attribute processor and added new property in update attribute processor
Output Flowfile Attribute value:-
Now we have removed first 5 characters in url attribute value by using update attribute processor.