<?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 get files based on the time stamp in Nifi? in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-get-files-based-on-the-time-stamp-in-Nifi/m-p/124165#M30979</link>
    <description>&lt;P&gt;Hi &lt;A rel="user" href="https://community.cloudera.com/users/10676/iyappan.html" nodeid="10676"&gt;@Iyappan Gopalakrishnan&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;If your files are located on local file system you may use ListFile processor. This processor has properties accepting the use of expression language. Using date functions of expression language [1], you can filter the files you list based on the timestamp (if the filenames contain timestamp).&lt;/P&gt;&lt;P&gt;Regarding your second question, you can use the File filter property in ListFile processor which accepts a regular expression. It allows you to exclude some extensions if you don't want to list .xls and .xlsx files.&lt;/P&gt;&lt;P&gt;[1] &lt;A href="https://nifi.apache.org/docs/nifi-docs/html/expression-language-guide.html#dates" target="_blank"&gt;https://nifi.apache.org/docs/nifi-docs/html/expression-language-guide.html#dates&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 07 Jun 2016 16:20:56 GMT</pubDate>
    <dc:creator>pvillard</dc:creator>
    <dc:date>2016-06-07T16:20:56Z</dc:date>
    <item>
      <title>how to get files based on the time stamp in Nifi?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-get-files-based-on-the-time-stamp-in-Nifi/m-p/124164#M30978</link>
      <description>&lt;OL&gt;
&lt;LI&gt;Please explain how to get files based on time stamp?&lt;/LI&gt;&lt;LI&gt;How to list a set of files not as (.xls and xlsx) files ie.other than .xls and .xlsx fiiles&lt;/LI&gt;&lt;/OL&gt;</description>
      <pubDate>Tue, 07 Jun 2016 16:16:07 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-get-files-based-on-the-time-stamp-in-Nifi/m-p/124164#M30978</guid>
      <dc:creator>iyappan</dc:creator>
      <dc:date>2016-06-07T16:16:07Z</dc:date>
    </item>
    <item>
      <title>Re: how to get files based on the time stamp in Nifi?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-get-files-based-on-the-time-stamp-in-Nifi/m-p/124165#M30979</link>
      <description>&lt;P&gt;Hi &lt;A rel="user" href="https://community.cloudera.com/users/10676/iyappan.html" nodeid="10676"&gt;@Iyappan Gopalakrishnan&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;If your files are located on local file system you may use ListFile processor. This processor has properties accepting the use of expression language. Using date functions of expression language [1], you can filter the files you list based on the timestamp (if the filenames contain timestamp).&lt;/P&gt;&lt;P&gt;Regarding your second question, you can use the File filter property in ListFile processor which accepts a regular expression. It allows you to exclude some extensions if you don't want to list .xls and .xlsx files.&lt;/P&gt;&lt;P&gt;[1] &lt;A href="https://nifi.apache.org/docs/nifi-docs/html/expression-language-guide.html#dates" target="_blank"&gt;https://nifi.apache.org/docs/nifi-docs/html/expression-language-guide.html#dates&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Jun 2016 16:20:56 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-get-files-based-on-the-time-stamp-in-Nifi/m-p/124165#M30979</guid>
      <dc:creator>pvillard</dc:creator>
      <dc:date>2016-06-07T16:20:56Z</dc:date>
    </item>
    <item>
      <title>Re: how to get files based on the time stamp in Nifi?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-get-files-based-on-the-time-stamp-in-Nifi/m-p/124166#M30980</link>
      <description>&lt;P&gt;Thanks@ &lt;A href="https://community.hortonworks.com/users/5078/pvillard.html"&gt;Pierre Villard&lt;/A&gt;&lt;/P&gt;&lt;P style="margin-left: 20px;"&gt;I'm using Windows Nifi how to list files using time stamp...&lt;/P&gt;&lt;P style="margin-left: 20px;"&gt;in File filter we the default as &lt;STRONG&gt;[^\.].* .&lt;/STRONG&gt; we can change * as which ever file format but suppose i don't want .xls file. how can i apply not in &lt;STRONG&gt;[^\.].xls.&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="margin-left: 20px;"&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Jun 2016 17:54:12 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-get-files-based-on-the-time-stamp-in-Nifi/m-p/124166#M30980</guid>
      <dc:creator>iyappan</dc:creator>
      <dc:date>2016-06-07T17:54:12Z</dc:date>
    </item>
    <item>
      <title>Re: how to get files based on the time stamp in Nifi?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-get-files-based-on-the-time-stamp-in-Nifi/m-p/124167#M30981</link>
      <description>&lt;P&gt;
	- I don't understand what is the problem with Windows. Do your files contain timestamps in the filename? If yes, you can use regular expression to filter on the filename based on the date.&lt;/P&gt;&lt;P&gt;
	- If you want all files having an extension but with the extension not being equal to .xls or .xlsx, you can use the following regular expression:&lt;/P&gt;&lt;PRE&gt;^.*\.(?!xls$|xlsx$)[^.]+$&lt;/PRE&gt;&lt;P&gt;I would recommend you testing your regular expressions on this website : &lt;A href="http://regexr.com/"&gt;http://regexr.com/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;This site provides a "explain tab" giving information regarding the regular expression and how it works.&lt;/P&gt;</description>
      <pubDate>Tue, 07 Jun 2016 18:12:11 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-get-files-based-on-the-time-stamp-in-Nifi/m-p/124167#M30981</guid>
      <dc:creator>pvillard</dc:creator>
      <dc:date>2016-06-07T18:12:11Z</dc:date>
    </item>
    <item>
      <title>Re: how to get files based on the time stamp in Nifi?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-get-files-based-on-the-time-stamp-in-Nifi/m-p/124168#M30982</link>
      <description>&lt;P&gt;Hi@&lt;A href="https://community.hortonworks.com/users/5078/pvillard.html"&gt;Pierre Villard&lt;/A&gt;&lt;/P&gt;&lt;P&gt;This (^.*\.(?!xls$|xlsx$)[^.]+$) operators is not working for me..it doesn't list any files. in my directory having two excel files and 1 .txt file and .xml file but it not list any.... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Jun 2016 19:27:47 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-get-files-based-on-the-time-stamp-in-Nifi/m-p/124168#M30982</guid>
      <dc:creator>iyappan</dc:creator>
      <dc:date>2016-06-07T19:27:47Z</dc:date>
    </item>
    <item>
      <title>Re: how to get files based on the time stamp in Nifi?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-get-files-based-on-the-time-stamp-in-Nifi/m-p/124169#M30983</link>
      <description>&lt;P&gt;This works for me.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="4813-screen-shot-2016-06-07-at-25047-pm.png" style="width: 1598px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/22730i32B1B7D284E98FAD/image-size/medium?v=v2&amp;amp;px=400" role="button" title="4813-screen-shot-2016-06-07-at-25047-pm.png" alt="4813-screen-shot-2016-06-07-at-25047-pm.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Aug 2019 10:15:44 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-get-files-based-on-the-time-stamp-in-Nifi/m-p/124169#M30983</guid>
      <dc:creator>pvillard</dc:creator>
      <dc:date>2019-08-19T10:15:44Z</dc:date>
    </item>
    <item>
      <title>Re: how to get files based on the time stamp in Nifi?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-get-files-based-on-the-time-stamp-in-Nifi/m-p/124170#M30984</link>
      <description>&lt;P&gt;now working...&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Iyappan&lt;/P&gt;</description>
      <pubDate>Wed, 08 Jun 2016 13:44:18 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-get-files-based-on-the-time-stamp-in-Nifi/m-p/124170#M30984</guid>
      <dc:creator>iyappan</dc:creator>
      <dc:date>2016-06-08T13:44:18Z</dc:date>
    </item>
  </channel>
</rss>

