This repository contains flow (Pastebin_Monitoring_Flow.xml) which was created for NiFi presentation purposes. Its main goal is to monitor newly added content on Pastebin.com and send notification on Slack when sample conditions are met. Step by step instruction - how to build it from scratch has been described in one of our articles: Use of NiFi for OSINT automation purposes (part II).
To import flow, you have to click on "Upload template" icon (toolbox on the left side), then click on magnifier to select file with the flow and finally "Upload" button.
When it's uploaded, drag and drop "Template" icon:
select "Pastebin monitoring flow" and click "Add" button. Now, you should see the following flow:
As you can see, two processors (PutSlack
) have warnings. You have to configure Webhook URL
for each of them. If you don't know how, read "Slack notification" section in our article.