Support Questions

Find answers, ask questions, and share your expertise
Announcements
Celebrating as our community reaches 100,000 members! Thank you!

Nifi : Alert mail to be sent when file not found in folder

avatar
Contributor

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 ?

1 ACCEPTED SOLUTION

avatar
Expert Contributor
hide-solution

This problem has been solved!

Want to get a detailed solution you have to login/registered on the community

Register/Login
4 REPLIES 4

avatar
Expert Contributor

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.

https://nifi.apache.org/docs/nifi-docs/components/org.apache.nifi/nifi-standard-nar/1.4.0/org.apache...

avatar
Contributor

@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

avatar
Expert Contributor
hide-solution

This problem has been solved!

Want to get a detailed solution you have to login/registered on the community

Register/Login

avatar
Contributor

@Umair Khan

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?