All Apps and Add-ons

Is there a way to include a link to a dashboard in Slack Notification Alert?

mnm1987
Explorer

Hello Fellow Splunkers,
I have an Alert set up which sends notification into a Slack Channel, I wanted to know if there is a way to include links to a dashboard within the Slack Notification Alert Content.

Thanks.

0 Karma
1 Solution

richard_wilhite
Explorer

Would the alert point to many different dashboards, depending on the output? If they all point back to the same dashboard you can just use the dashboard link in plain text. Slack should auto format it as a link. The link will be something like https://splunk.mydomain.com/en-US/app/search/myDashboard

If you need different dashboards for different alert outcomes, you are probably going to need multiple alerts.

View solution in original post

richard_wilhite
Explorer

Would the alert point to many different dashboards, depending on the output? If they all point back to the same dashboard you can just use the dashboard link in plain text. Slack should auto format it as a link. The link will be something like https://splunk.mydomain.com/en-US/app/search/myDashboard

If you need different dashboards for different alert outcomes, you are probably going to need multiple alerts.

gjanders
SplunkTrust
SplunkTrust

Alternatively, if it's different dashboards based on the results of the search then you could use sendresults https://splunkbase.splunk.com/app/1794/ (or it may make more sense to have multiple alerts).

0 Karma

mnm1987
Explorer

Thanks for the response Richard. Each alert would point to the same dashboard but with different token inputs. I'll give it a shot.

0 Karma

richard_wilhite
Explorer

I just tested this with some form.field inputs and slack did format the link. I was able to click on it, and get the populated dashboard.
https://splunk.myDomain.com/en-US/app/search/myDashboard?form.field1=id&form.field1=displayName

You can, of course, also do form.field1=$result.foo$ to populate the dashboard with results from the search.

0 Karma
Get Updates on the Splunk Community!

Stay Connected: Your Guide to May Tech Talks, Office Hours, and Webinars!

Take a look below to explore our upcoming Community Office Hours, Tech Talks, and Webinars this month. This ...

They're back! Join the SplunkTrust and MVP at .conf24

With our highly anticipated annual conference, .conf, comes the fez-wearers you can trust! The SplunkTrust, as ...

Enterprise Security Content Update (ESCU) | New Releases

Last month, the Splunk Threat Research Team had two releases of new security content via the Enterprise ...