@Julian Iglesias
-
You can accomplish above using a function chain in your NiFi Expression Language (EL) statement.
Rather then using the getDelimitedField() EL function:
${log_source:getDelimitedField(3,'\')}
-
You can successfully do this using the substringAfter() function twice to strip away what is before "dir2" and the substringBefore() function to strip away everything after "dir2":
${log_source:substringAfter('\\'):substringAfter('\\'):substringBefore('\\')}
-
Thank you,
Matt
-
If you found this answer addressed your question, please take a moment to login in and click the "ACCEPT" link.