<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Re: How to parse the NiFi filename attribute that has embedded directory information ( a/b/c/file.log ) and extract only the file name (file.log) using expression language and possibly UpdateAttribute processor? in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Parsing-Embedded-Paths-from-the-NiFi-filename-Attribute/m-p/221059#M254889</link>
    <description>&lt;A rel="user" href="https://community.cloudera.com/users/18061/guha.html" nodeid="18061"&gt;@Prabir Guha&lt;/A&gt;&lt;P&gt;You would certainly use the UpdateAttribute processor to do this and a NiFi expression language statement as follows :&lt;/P&gt;&lt;PRE&gt;${filename:substringAfterLast('/')}&lt;/PRE&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Matt&lt;/P&gt;</description>
    <pubDate>Thu, 04 May 2017 23:29:22 GMT</pubDate>
    <dc:creator>MattWho</dc:creator>
    <dc:date>2017-05-04T23:29:22Z</dc:date>
    <item>
      <title>Parsing Embedded Paths from the NiFi filename Attribute Using Expression Language</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Parsing-Embedded-Paths-from-the-NiFi-filename-Attribute/m-p/221058#M254888</link>
      <description />
      <pubDate>Fri, 05 Jun 2026 02:32:54 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Parsing-Embedded-Paths-from-the-NiFi-filename-Attribute/m-p/221058#M254888</guid>
      <dc:creator>guha</dc:creator>
      <dc:date>2026-06-05T02:32:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to parse the NiFi filename attribute that has embedded directory information ( a/b/c/file.log ) and extract only the file name (file.log) using expression language and possibly UpdateAttribute processor?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Parsing-Embedded-Paths-from-the-NiFi-filename-Attribute/m-p/221059#M254889</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/18061/guha.html" nodeid="18061"&gt;@Prabir Guha&lt;/A&gt;&lt;P&gt;You would certainly use the UpdateAttribute processor to do this and a NiFi expression language statement as follows :&lt;/P&gt;&lt;PRE&gt;${filename:substringAfterLast('/')}&lt;/PRE&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Matt&lt;/P&gt;</description>
      <pubDate>Thu, 04 May 2017 23:29:22 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Parsing-Embedded-Paths-from-the-NiFi-filename-Attribute/m-p/221059#M254889</guid>
      <dc:creator>MattWho</dc:creator>
      <dc:date>2017-05-04T23:29:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to parse the NiFi filename attribute that has embedded directory information ( a/b/c/file.log ) and extract only the file name (file.log) using expression language and possibly UpdateAttribute processor?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Parsing-Embedded-Paths-from-the-NiFi-filename-Attribute/m-p/221060#M254890</link>
      <description>&lt;P&gt;There is an expression language guide here:&lt;/P&gt;&lt;P&gt;&lt;A href="https://nifi.apache.org/docs/nifi-docs/html/expression-language-guide.html" target="_blank"&gt;https://nifi.apache.org/docs/nifi-docs/html/expression-language-guide.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;For your example you should be able to create an UpdateAttribute processor and add a new property like:&lt;/P&gt;&lt;P&gt;myfilename = ${filename:substringAfterLast('/')}&lt;/P&gt;</description>
      <pubDate>Thu, 04 May 2017 23:30:37 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Parsing-Embedded-Paths-from-the-NiFi-filename-Attribute/m-p/221060#M254890</guid>
      <dc:creator>bbende</dc:creator>
      <dc:date>2017-05-04T23:30:37Z</dc:date>
    </item>
  </channel>
</rss>

