Dashboards & Visualizations

Is it possible to drilldown from an Status Indicator icon?

guimilare
Communicator

Hello Splunkers,

I have a monitoring dashboard that uses Status Indicator in the panels:
alt text
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!

1 Solution

gwobben
Communicator

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.
                );
    });
});

View solution in original post

ehorwood
Explorer

Just want to say this worked brilliantly!

Just what i was looking for 🙂

Thankyou

0 Karma

guimilare
Communicator

Hi @gwobben,

Thank you!

It worked perfectly!!

0 Karma
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

Announcing Modern Navigation: A New Era of Splunk User Experience

We are excited to introduce the Modern Navigation feature in the Splunk Platform, available to both cloud and ...

Observability Simplified: Combining User Experience, Application Performance & ...

Tech Talk Observability Simplified: Combining User Experience, Application Performance & Network ...

Event Series May & June: From Network Visibility to Service Intelligence

Unifying the Network: Moving from Alert Noise to Service Intelligence with Splunk ITSI In today’s hybrid ...