<?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 dates 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-dates-in-NiFi/m-p/136825#M31785</link>
    <description>&lt;A rel="user" href="https://community.cloudera.com/users/10670/manikandan.html" nodeid="10670"&gt;@Manikandan Durairaj&lt;/A&gt;&lt;P&gt;you can take the advantage of regular expression with getFile, something like this &lt;A href="https://community.hortonworks.com/questions/38120/how-to-get-files-based-on-the-time-stamp-in-nifi.html" target="_blank"&gt;https://community.hortonworks.com/questions/38120/how-to-get-files-based-on-the-time-stamp-in-nifi.html&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 14 Jun 2016 13:17:29 GMT</pubDate>
    <dc:creator>rajkumar_singh</dc:creator>
    <dc:date>2016-06-14T13:17:29Z</dc:date>
    <item>
      <title>How to get files based on dates in NiFi?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-get-files-based-on-dates-in-NiFi/m-p/136824#M31784</link>
      <description>&lt;P&gt;I'm Newer in hadoop and NiFi. I try to list or get files based on date range (From and To dates) and using windows NiFi. can anyone please give me example or sample of date format. &lt;/P&gt;&lt;P&gt;Thanks &lt;/P&gt;&lt;P&gt;Manikandan&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jun 2016 12:53:24 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-get-files-based-on-dates-in-NiFi/m-p/136824#M31784</guid>
      <dc:creator>manikandan</dc:creator>
      <dc:date>2016-06-14T12:53:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to get files based on dates in NiFi?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-get-files-based-on-dates-in-NiFi/m-p/136825#M31785</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/10670/manikandan.html" nodeid="10670"&gt;@Manikandan Durairaj&lt;/A&gt;&lt;P&gt;you can take the advantage of regular expression with getFile, something like this &lt;A href="https://community.hortonworks.com/questions/38120/how-to-get-files-based-on-the-time-stamp-in-nifi.html" target="_blank"&gt;https://community.hortonworks.com/questions/38120/how-to-get-files-based-on-the-time-stamp-in-nifi.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jun 2016 13:17:29 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-get-files-based-on-dates-in-NiFi/m-p/136825#M31785</guid>
      <dc:creator>rajkumar_singh</dc:creator>
      <dc:date>2016-06-14T13:17:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to get files based on dates in NiFi?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-get-files-based-on-dates-in-NiFi/m-p/136826#M31786</link>
      <description>&lt;P&gt;Yes @&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.hortonworks.com/users/8919/rajkumarsingh.html"&gt;Rajkumar Singh&lt;/A&gt;&lt;/P&gt;&lt;P&gt; already have seen this post before but i have doubt on it, like
&lt;/P&gt;&lt;UL&gt;
&lt;LI&gt;Is every file need to give date as name (may be I'm wrong) and need to use expression to filter file name(as date)&lt;/LI&gt;&lt;LI&gt;Please give me example of how to use date in  NIFi&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;I'm newer in NiFi please explain briefly with examples..&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jun 2016 13:43:13 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-get-files-based-on-dates-in-NiFi/m-p/136826#M31786</guid>
      <dc:creator>manikandan</dc:creator>
      <dc:date>2016-06-14T13:43:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to get files based on dates in NiFi?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-get-files-based-on-dates-in-NiFi/m-p/136827#M31787</link>
      <description>&lt;P&gt;Hi &lt;A rel="user" href="https://community.cloudera.com/users/10670/manikandan.html" nodeid="10670"&gt;@Manikandan Durairaj&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;If you don't have dates in the name of your files, the only option I see is to use the combination of ListFile and FetchFile processors. The ListFile processor has the two following properties:&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;STRONG&gt;Minimum File Age&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;The minimum age that a file must be in order to be pulled; any file younger than this amount of time (according to last modification date) will be ignored&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;
&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Maximum File Age&lt;/TD&gt;&lt;TD&gt;The maximum age that a file must be in order to be pulled; any file older than this amount of time (according to last modification date) will be ignored&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;It will allow you to get files with the last modification dates in the given interval. By connecting the output of this processor to the FetchFile processor you will get the files just like the GetFile processor does.&lt;/P&gt;&lt;P&gt;If this is not what you are looking for, we need more details about what you want to achieve.&lt;/P&gt;&lt;P&gt;&lt;A href="https://nifi.apache.org/docs/nifi-docs/components/org.apache.nifi.processors.standard.ListFile/index.html" target="_blank"&gt;https://nifi.apache.org/docs/nifi-docs/components/org.apache.nifi.processors.standard.ListFile/index.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jun 2016 13:53:05 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-get-files-based-on-dates-in-NiFi/m-p/136827#M31787</guid>
      <dc:creator>pvillard</dc:creator>
      <dc:date>2016-06-14T13:53:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to get files based on dates in NiFi?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-get-files-based-on-dates-in-NiFi/m-p/136828#M31788</link>
      <description>&lt;P&gt;Hi @ &lt;/P&gt;&lt;P&gt;&lt;A href="https://community.hortonworks.com/users/5078/pvillard.html"&gt;Pierre Villard&lt;/A&gt; Thanks for your post. &lt;/P&gt;&lt;UL&gt;
&lt;LI&gt;In Maximum File Age can i give only time (sec, min, Hours) or particular date if i tried to give date (${time:toDate("2016/06/08")})  it shows error&lt;/LI&gt;&lt;LI&gt;if suppose my file name is like date how can i filter using expression language,please show me example processor properties&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Thanks &lt;/P&gt;&lt;P&gt;Manikandan&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jun 2016 14:15:04 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-get-files-based-on-dates-in-NiFi/m-p/136828#M31788</guid>
      <dc:creator>manikandan</dc:creator>
      <dc:date>2016-06-14T14:15:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to get files based on dates in NiFi?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-get-files-based-on-dates-in-NiFi/m-p/136829#M31789</link>
      <description>&lt;P&gt;Let's say my files contain the date in its name:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;/tmp/test/test-20160501.txt&lt;/LI&gt;&lt;LI&gt;...&lt;/LI&gt;&lt;LI&gt;/tmp/test/test-20160531.txt&lt;/LI&gt;&lt;LI&gt;/tmp/test/test-20160601.txt&lt;/LI&gt;&lt;LI&gt;...&lt;/LI&gt;&lt;LI&gt;/tmp/test/test-20160614.txt&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;If I only want to list files for the month of June:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="4996-screen-shot-2016-06-14-at-101148-am.png" style="width: 1596px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/22003i9E43FE74D9431E17/image-size/medium?v=v2&amp;amp;px=400" role="button" title="4996-screen-shot-2016-06-14-at-101148-am.png" alt="4996-screen-shot-2016-06-14-at-101148-am.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Note&lt;/STRONG&gt;: when hovering the "?" symbol next to a property in processor settings you are able to see if the property supports expression language.&lt;/P&gt;</description>
      <pubDate>Mon, 19 Aug 2019 08:48:29 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-get-files-based-on-dates-in-NiFi/m-p/136829#M31789</guid>
      <dc:creator>pvillard</dc:creator>
      <dc:date>2019-08-19T08:48:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to get files based on dates in NiFi?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-get-files-based-on-dates-in-NiFi/m-p/136830#M31790</link>
      <description>&lt;P&gt;Thanks @&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.hortonworks.com/users/5078/pvillard.html"&gt;Pierre Villard&lt;/A&gt;&lt;/P&gt;&lt;P&gt;This is what i was expecting... Thanks once again...
&lt;A href="https://community.hortonworks.com/users/5078/pvillard.html"&gt;&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jun 2016 15:57:07 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-get-files-based-on-dates-in-NiFi/m-p/136830#M31790</guid>
      <dc:creator>manikandan</dc:creator>
      <dc:date>2016-06-14T15:57:07Z</dc:date>
    </item>
  </channel>
</rss>

