<?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: File filter in Nifi UnpackContent in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/File-filter-in-Nifi-UnpackContent/m-p/315319#M226412</link>
    <description>Thank you Matt! This is exactly what I needed.</description>
    <pubDate>Mon, 26 Apr 2021 14:40:58 GMT</pubDate>
    <dc:creator>Vickey</dc:creator>
    <dc:date>2021-04-26T14:40:58Z</dc:date>
    <item>
      <title>File filter in Nifi UnpackContent</title>
      <link>https://community.cloudera.com/t5/Support-Questions/File-filter-in-Nifi-UnpackContent/m-p/314755#M226176</link>
      <description>&lt;P&gt;I have a tar file with .csv, .xml, and .txt files that I want to unpack using the UnpackContent processor.&amp;nbsp; &amp;nbsp;Can I specify all three file types in the file filter?&lt;/P&gt;</description>
      <pubDate>Thu, 15 Apr 2021 18:10:23 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/File-filter-in-Nifi-UnpackContent/m-p/314755#M226176</guid>
      <dc:creator>Vickey</dc:creator>
      <dc:date>2021-04-15T18:10:23Z</dc:date>
    </item>
    <item>
      <title>Re: File filter in Nifi UnpackContent</title>
      <link>https://community.cloudera.com/t5/Support-Questions/File-filter-in-Nifi-UnpackContent/m-p/314783#M226188</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/73497"&gt;@Vickey&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;The file filter property of the unpackContent processor takes a java regular expression and can be used when unpacking tar or zip file.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;In your unpackContent processor, set the "Packaging format" to either "ZIP" or "TAR" based on what package format is used by your source file.&lt;BR /&gt;The set a java regular expression such as below to extract only files within that package where the filename ends with the .csv, .txt, or .xml extensions:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;.*\.(txt|xml|csv)&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;Hope this helps,&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Matt&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Apr 2021 13:06:25 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/File-filter-in-Nifi-UnpackContent/m-p/314783#M226188</guid>
      <dc:creator>MattWho</dc:creator>
      <dc:date>2021-04-16T13:06:25Z</dc:date>
    </item>
    <item>
      <title>Re: File filter in Nifi UnpackContent</title>
      <link>https://community.cloudera.com/t5/Support-Questions/File-filter-in-Nifi-UnpackContent/m-p/315319#M226412</link>
      <description>Thank you Matt! This is exactly what I needed.</description>
      <pubDate>Mon, 26 Apr 2021 14:40:58 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/File-filter-in-Nifi-UnpackContent/m-p/315319#M226412</guid>
      <dc:creator>Vickey</dc:creator>
      <dc:date>2021-04-26T14:40:58Z</dc:date>
    </item>
  </channel>
</rss>

