- 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 slack alert with dynamic message
- Labels:
-
Apache NiFi
Created ‎05-15-2023 08:48 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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..
Created ‎05-15-2023 11:25 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Just wanted to update that I used flow file attributes to solve this.
putslack's Webhook Text supports expression language!!!
Created ‎05-15-2023 11:25 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Just wanted to update that I used flow file attributes to solve this.
putslack's Webhook Text supports expression language!!!
Created ‎05-15-2023 12:09 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Congratulations on solving your issue @SandyClouds and thanks for taking the time to share it with the community.
Cy Jervis, Manager, Community Program
Was your question answered? Make sure to mark the answer as the accepted solution.
If you find a reply useful, say thanks by clicking on the thumbs up button.
