Allow fields to be used as variables within webhook connectios (to slack)
I currently have a search that runs through chef logs ands produces JSON results as follows...
[{"title":"A chef run for bf-mexchangeblackjack on prdgxl-288b0d.prd.betfair just finished after 52 seconds.","Time":1445609423808},{"title":"A chef run for bf-mexchangeblackjack on prdgxl-288b0d.prd.betfair just finished after 52 seconds.","Time":1445609423000}]
...within slack we have channels named after each application (in this case "gxl" from the hostname) so I'd like to parse that string and add it to the results as an "app" field then use it as a variable in the webhooks payload to dynamically direct the message to the appropriate channel, something like...
"channel": "#prod_$app",
...for example. Obviously each element in the JSON results set would trigger a webhook with the variables being iteratively substituted.
-
Official comment
Just following up here - Our PM says this feature should be GA by the second week of January. I hope this helps!
Thanks,
Nick
Customer Success Manager, Sumo LogicComment actions -
Hi all - I'm so sorry no one ever replied here on this one, but I believe this feature request is what you're looking for. I've reached out to the PM to be sure and get an idea of where it's at.
Thanks,
Nick
Customer Success Manager, Sumo Logic
Please sign in to leave a comment.
Comments
4 comments