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]

Support Questions

Find answers, ask questions, and share your expertise
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!

Nifi slack alert with dynamic message

avatar
Expert Contributor

Hi All,

 

I am trying to send slack alerts from Nifi whenever there is a failure in flow.

I have some 10 different processor flows, I want to use a single putslack for all those flows but the message in slack is dynamic..

Example:

record failed for processor1

record failed for processor2

meaning just a variable changes in slack message.

 

and this variable i should send from processor flows.

How can putslack processor know from which previous processor it got the request ?

 

But I don't know how to make it possible. I kept a output port that collects all flowfiles of failures. 

Now i created a putslack processor that connects to this output port.. but i dont see a option on how can i send variables dynamically.

 

Can someone please guide me with suggestions, or correct me if this ideation is wrong..

 

1 ACCEPTED SOLUTION

avatar
Expert Contributor

Just wanted to update that I used flow file attributes to solve this.

putslack's Webhook Text supports expression language!!!

View solution in original post

2 REPLIES 2

avatar
Expert Contributor

Just wanted to update that I used flow file attributes to solve this.

putslack's Webhook Text supports expression language!!!

avatar
Community Manager

Congratulations on solving your issue @SandyClouds and thanks for taking the time to share it with the community. 

Keep the questions coming