- Subscribe to RSS Feed
- Mark Question as New
- Mark Question as Read
- Float this Question for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
Nifi : Alert mail to be sent when file not found in folder
- Labels:
-
Apache NiFi
Created ‎11-07-2017 12:59 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Nifi : Alert mail to be sent when file not found in folder
Is there a way using Nifi to poll a particular folder for a file .
If file not found in that interval ,send a mail .
Get File allows read a file ,but there is not failure relationship when using getFile processor.
How can that be achieved ?
Created on ‎11-09-2017 04:24 PM - edited ‎08-18-2019 01:45 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Template attached. I am using Nifi 1.3.0. In this template if a file is not found in GetFile processor every 10 seconds an event will be generated. You can put an email processor in front of Monitor Activity to send mail. You can also set custom subject headers in Monitoring processor (also in the template).
Created ‎11-07-2017 07:39 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Put a MonitorActivity processor after your GetFile processor. Set the threshold to your interval. If a file is not found in that interval MonitorActivity will be triggered.
Created ‎11-09-2017 06:27 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
@Umair Khan Could share a sample template consisting of monitor activity processor to handled this scenario. Not able to understand the way to use it. Thanks
Created on ‎11-09-2017 04:24 PM - edited ‎08-18-2019 01:45 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Template attached. I am using Nifi 1.3.0. In this template if a file is not found in GetFile processor every 10 seconds an event will be generated. You can put an email processor in front of Monitor Activity to send mail. You can also set custom subject headers in Monitoring processor (also in the template).
Created ‎11-13-2017 07:03 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks for the template . Have another question ,suppose i have a threshold interval of 10 min but would like monitor only twice (10 min + 10 min)and not every 10 min ,how can that be done?
