Our Community is getting an upgrade! To get everything ready for the relaunch, we’ll be placing the site in read-only mode starting September 21st.
We really appreciate your understanding while we get things set up behind the scenes. Catch up on all the exciting details about the move here.
Need help or have questions? Drop us a line at [email protected]

Community Articles

Find and share helpful community-sourced technical articles.
Announcements
Share your experience with Cloudera on G2 and get a $25 Amazon Gift card.
Hi, I'm CLEO! Something exciting is coming to the Community. Stay Tuned!
Labels (1)
avatar
Master Guru

I just tried out the new NiFi 0.7.0 version's Slack.

Source

I used Twitter, since it has some fun data and gets you a nice big stream. Sometimes with Twitter Feeds will be limited and Twitter will give you the 420 Enhance Your Calm Message. https://httpstatusdogs.com/420-enhance-your-calm Usually you can just wait 5-20 minutes and you will be serving again. Sometimes you might need to use a different of your apps, reset the tokens in your app or create a new app (https://apps.twitter.com/).

Processing

Use the Pull Key Attributes, to Find Only Tweets (remove null)

Sink to Slack

5819-slack3.png

For the PutToSlack Processor

Set the Webhook URL to the URL generated by the incoming webhook page in slack.com.

Set the Webhook Text to ${twitter.msg}, this will send your Twitter message to slack.

Set the Channel to #general, or a channel of your choosing.

I created a slack board for receiving my messages, https://nifi-se.slack.com/messages/general/.

You can easily create your own (or using your existing Slack board). Just go to slack.com. You will need to create a webhook. To set it up, in the #general channel just type incoming webhook. You will get a link the screen to create one.

5821-slack2.png

5820-slack1.png

Apache NiFi 0.70 Final Flow

5822-slack4.png

Now you can start seeing tweets turn into slack messages.

5824-slack6.png

Apache NiFi 0.70 now has 155 processors!

5823-slack5.png

Let's explore some more.

6,925 Views
Comments
avatar

@Timothy Spann Could you please let me know is there any way to provide webhook url property value as a variable?

avatar
New Member

@TimothySpann Could you explain how you were able to convert the webhook text to ${twitter.msg} and have it work? I am trying to do a similar flow for AlphaVantage and I am having trouble with sending this step to slack. Thank you

Version history
Last update:
‎08-17-2019 11:20 AM
Updated by:
Contributors