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!

Built-in Service Level Objectives Management to Bridge the Gap Between Service & ...

Wednesday, May 29, 2024  |  11AM PST / 2PM ESTRegister now and join us to learn more about how you can ...

Get Your Exclusive Splunk Certified Cybersecurity Defense Engineer at Splunk .conf24 ...

We’re excited to announce a new Splunk certification exam being released at .conf24! If you’re headed to Vegas ...

Share Your Ideas & Meet the Lantern team at .Conf! Plus All of This Month’s New ...

Splunk Lantern is Splunk’s customer success center that provides advice from Splunk experts on valuable data ...