Hello Splunkers,
I have a monitoring dashboard that uses Status Indicator in the panels:
Is it possible to configure a drilldown to another dashboard when clicking on the icon?
I don't need to pass any token, just redirect to another dashboard.
Thanks in advance!
No that's not possible... HOWEVER! This little hack in JavaScript does work.
First Add an id to the panel in XML
<panel id="something">
Then create a JavaScript file in your app folder: $SPLUNK_HOME/etc/apps/<your app>/appserver/static/drilldown.js. Include the drilldown file in your dashboard like this:
<dashboard script="drilldown.js">
Add the following to the JavaScript file:
// Components to require
var components = [
"splunkjs/ready!",
"splunkjs/mvc/simplexml/ready!",
"jquery"
];
// Require the components
require(components, function(
mvc,
ignored,
$
) {
$('#something').click(function() {
window.open(
'YOUR_DASHBOARD_HERE',
'_blank' // <- This is what makes it open in a new window.
);
});
});
Just want to say this worked brilliantly!
Just what i was looking for 🙂
Thankyou
Hi @gwobben,
Thank you!
It worked perfectly!!