<?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 Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-parse-the-NiFi-filename-attribute-that-has-embedded/m-p/221060#M60508</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>
    <dc:creator>bbende</dc:creator>
    <dc:date>2017-05-04T23:30:37Z</dc:date>
    <item>
      <title>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/Archives-of-Support-Questions/How-to-parse-the-NiFi-filename-attribute-that-has-embedded/m-p/221058#M60506</link>
      <description />
      <pubDate>Thu, 04 May 2017 23:18:57 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-parse-the-NiFi-filename-attribute-that-has-embedded/m-p/221058#M60506</guid>
      <dc:creator>guha</dc:creator>
      <dc:date>2017-05-04T23:18:57Z</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/Archives-of-Support-Questions/How-to-parse-the-NiFi-filename-attribute-that-has-embedded/m-p/221059#M60507</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/Archives-of-Support-Questions/How-to-parse-the-NiFi-filename-attribute-that-has-embedded/m-p/221059#M60507</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/Archives-of-Support-Questions/How-to-parse-the-NiFi-filename-attribute-that-has-embedded/m-p/221060#M60508</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/Archives-of-Support-Questions/How-to-parse-the-NiFi-filename-attribute-that-has-embedded/m-p/221060#M60508</guid>
      <dc:creator>bbende</dc:creator>
      <dc:date>2017-05-04T23:30:37Z</dc:date>
    </item>
  </channel>
</rss>

