Send Alerts for Specific Events via Slack or SMS or Email #2501
|
Hello Seq Team, Seq is used in an existing production level application for logging. Based on the logs stored in seq, I need to create some custom alerts and fire it on platforms like Slack , or via Email. Currently all timeouts in my application are logged in seq under level "error" and for those timeout events there's a parameter or property called 'code' which has value 'ETIMEOUT'. Now I need seq to create alerts in 2 ways
I'll be required to implement alerts for these 2 scenarios and those alerts needs be fired in platforms like Slack , Email. Down the line , I may also need to create alerts like this for other events too. Primary factors for the alert to create :
So generally speaking I need to get some alerts when above mentioned threshold exceeds. Kindly guide me on how to create these kind of alerts and make it functional ? Please also share me if there's any documentation for creating alerts ? |
Replies: 3 comments 1 reply
|
Hi @Kishore80 , See https://datalust.co/docs/alerts, https://datalust.co/docs/installing-output-apps, https://datalust.co/docs/slack-notifications and https://datalust.co/docs/formatting-html-email. That should be everything you need. |
|
Thanks for the resources. I'll look into the implementation. In addition to that , I also need to send an SMS for few users when an alert fires. To do that ,I'm thinking to call a webhook url which points to one of my backend rest APIs (https),which upon receiving the request will send the SMS. So is there any application in Nuget package manager which can call the https rest backend endpoint ? |
|
Thanks for the resources. |
The Seq.App.HttpRequest app can call webhooks when an alert is triggered. https://datalust.co/docs/calling-webhooks
And here is an example https://datalust.co/blog/httprequest-webhook