Support Questions

Find answers, ask questions, and share your expertise
Announcements
Celebrating as our community reaches 100,000 members! Thank you!

Expression ${filename:replaceAll(':','_')} in UpdateAttribute processor to replace all occurences of clolon : with underscore does not seem to work

avatar
Explorer

Expression ${filename:replaceAll(':','_')} in UpdateAttribute processor to replace all occurrences of colon : with underscore in the flowfile name does not seem to work, what am I missing?

3 REPLIES 3

avatar
@Prabir Guha

I did a quick test and your regex worked just fine. What does your original flow file name look like?

avatar
Explorer

snmp.12:00:00-13:00:00.log I am trying to replace all the colons : with underscores _

avatar
Explorer

@Wynner Found the problem. Property value was not set to filename.