<?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 I want fetch the files based on some wildcard  in NIFI in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/I-want-fetch-the-files-based-on-some-wildcard-in-NIFI/m-p/372547#M241272</link>
    <description>&lt;P&gt;I want to fetch the files based on wildcard(*xyz*.txt) in nifi and if files are not available then it will keep on looping again check whether the files are exist or not. Can you please suggest the solution in NIFI. Files are present in server.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 13 Jun 2023 08:05:59 GMT</pubDate>
    <dc:creator>ShyamKumar</dc:creator>
    <dc:date>2023-06-13T08:05:59Z</dc:date>
    <item>
      <title>I want fetch the files based on some wildcard  in NIFI</title>
      <link>https://community.cloudera.com/t5/Support-Questions/I-want-fetch-the-files-based-on-some-wildcard-in-NIFI/m-p/372547#M241272</link>
      <description>&lt;P&gt;I want to fetch the files based on wildcard(*xyz*.txt) in nifi and if files are not available then it will keep on looping again check whether the files are exist or not. Can you please suggest the solution in NIFI. Files are present in server.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Jun 2023 08:05:59 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/I-want-fetch-the-files-based-on-some-wildcard-in-NIFI/m-p/372547#M241272</guid>
      <dc:creator>ShyamKumar</dc:creator>
      <dc:date>2023-06-13T08:05:59Z</dc:date>
    </item>
    <item>
      <title>Re: I want fetch the files based on some wildcard  in NIFI</title>
      <link>https://community.cloudera.com/t5/Support-Questions/I-want-fetch-the-files-based-on-some-wildcard-in-NIFI/m-p/372561#M241278</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I think what you need is the GetFile processor and not FetchFile. In the Fetch File you have to specify the exact file path and name that you want to fetch and you can't use wild card. However in the Get File you specify the path in the "Input Directory" then you can use Regex&amp;nbsp; in the "File Filter" property to capture files with certain pattern. In your case the search pattern in Regex will be something like "&lt;STRONG&gt;.*xyz.*\.txt&lt;/STRONG&gt;"&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SAMSAL_0-1686663795689.png" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/37807i3256F2C74D41752C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SAMSAL_0-1686663795689.png" alt="SAMSAL_0-1686663795689.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;You need to watch for other Properties like "&lt;STRONG&gt;Keep Source File&lt;/STRONG&gt;" which decide what to do with the file after its picked up. If you want to loop indefinitely then "False" would be the right value. Once the file is picked up you can save it somewhere else using PutFile processor. The "&lt;STRONG&gt;Recurse Subdirectories&lt;/STRONG&gt;" let you decide wither you want to search root folder only or all folder levels.&lt;/P&gt;&lt;P&gt;If that helps please &lt;STRONG&gt;accept&lt;/STRONG&gt; solution.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 13 Jun 2023 13:47:57 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/I-want-fetch-the-files-based-on-some-wildcard-in-NIFI/m-p/372561#M241278</guid>
      <dc:creator>SAMSAL</dc:creator>
      <dc:date>2023-06-13T13:47:57Z</dc:date>
    </item>
  </channel>
</rss>

