<?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 search a directory for files and send an email notification if no files are present using NiFi? in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-search-a-directory-for-files-and-send-an-email/m-p/155391#M49007</link>
    <description>&lt;P&gt;Thanks very much &lt;A rel="user" href="https://community.cloudera.com/users/525/mclark.html" nodeid="525"&gt;@Matt&lt;/A&gt;. It works!!!&lt;/P&gt;</description>
    <pubDate>Thu, 15 Dec 2016 22:41:48 GMT</pubDate>
    <dc:creator>rbnaveen_kumar</dc:creator>
    <dc:date>2016-12-15T22:41:48Z</dc:date>
    <item>
      <title>How to search a directory for files and send an email notification if no files are present using NiFi?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-search-a-directory-for-files-and-send-an-email/m-p/155389#M49005</link>
      <description />
      <pubDate>Thu, 15 Dec 2016 21:01:02 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-search-a-directory-for-files-and-send-an-email/m-p/155389#M49005</guid>
      <dc:creator>rbnaveen_kumar</dc:creator>
      <dc:date>2016-12-15T21:01:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to search a directory for files and send an email notification if no files are present using NiFi?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-search-a-directory-for-files-and-send-an-email/m-p/155390#M49006</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/14928/rbnaveen-kumar.html" nodeid="14928" target="_blank"&gt;@NAVEEN KUMAR&lt;/A&gt;
&lt;/P&gt;&lt;P&gt;One suggestion might be use a ListFile processor configured to run on cron schedule.  You could then feed the success from that processor to MonitorActivity processor.  The inactive relationship of this processor could be routed to a putEmail processor.&lt;/P&gt;&lt;P&gt;So lets say you have you list file configured to run every 3 minutes based on a cron.  You could set your threshold in the MonitorActivity processor to 3 minutes with a setting of "continually send message" set to true.  With the inactive relationship routed to putEmail, you will get an email every 3 minutes if the listFile produced no new files.&lt;/P&gt;&lt;P&gt;you could also route the activity.restored relationship to a PutEmail processor if you want to be notified if file where seen following a period of no activity.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="10329-screen-shot-2016-12-15-at-82756-am.png" style="width: 888px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/20957i1C8B72673FC570DB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="10329-screen-shot-2016-12-15-at-82756-am.png" alt="10329-screen-shot-2016-12-15-at-82756-am.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Matt&lt;/P&gt;</description>
      <pubDate>Sun, 18 Aug 2019 12:28:13 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-search-a-directory-for-files-and-send-an-email/m-p/155390#M49006</guid>
      <dc:creator>MattWho</dc:creator>
      <dc:date>2019-08-18T12:28:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to search a directory for files and send an email notification if no files are present using NiFi?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-search-a-directory-for-files-and-send-an-email/m-p/155391#M49007</link>
      <description>&lt;P&gt;Thanks very much &lt;A rel="user" href="https://community.cloudera.com/users/525/mclark.html" nodeid="525"&gt;@Matt&lt;/A&gt;. It works!!!&lt;/P&gt;</description>
      <pubDate>Thu, 15 Dec 2016 22:41:48 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-search-a-directory-for-files-and-send-an-email/m-p/155391#M49007</guid>
      <dc:creator>rbnaveen_kumar</dc:creator>
      <dc:date>2016-12-15T22:41:48Z</dc:date>
    </item>
  </channel>
</rss>

