All Apps and Add-ons

Drilldown from Status Indicator icon

hafizuddin
Path Finder

hi,

I had used the status indicator on my dashboard and what I want is when I click the icon, another dashboard will pop-up.

alt text
I had read and followed the article from this link https://answers.splunk.com/answers/471329/is-it-possible-to-drilldown-from-an-status-indicat.html#co... but it seems like it doesn't work. It is something wrong with my javascript/XML

here my XML code:

alt text

And this is my java script where I locate it at C:\Program Files\Splunk\etc\apps\status_indicator_app\appserver\static\drilldown.js:

var components = [splunkjs/ready!,splunkjs/mvc/simplexml/ready!,jquery];
require(components, function(mvc,ignored,$) 
{ $(#something).click(function() {window.open(SolarwindsGroupCircuit,'_blank' )})});
1 Solution

493669
Super Champion

ok.. I think I got your issue...
go to Settings>>User interface »Views
here check your SolarwindsGroupCircuit dashboard view name it might be different...?

View solution in original post

0 Karma

hafizuddin
Path Finder

what I mean if I had many status indicator like below and every status indicator when I click it popup to different dashboard. does it set to token?

alt text

0 Karma

493669
Super Champion

For different panels you can set panel id like you have set for one panel as <panel id="something"> similarly you can set for different panels different id like <panel id="panel1"> <panel id="panel2">
and in js use these panel id like

$('#panel1').click(function() {
       window.open(
                   'YOUR_DASHBOARD_HERE',
                   '_blank' // <- This is what makes it open in a new window.
                 );
     });

hafizuddin
Path Finder

okay I understand this.
if I had a different panel, then one of panel will show the dashboard on other app. as i know the js file need to locate on app file. let say the panel on search app and it will drilldown/pop-up to dashboard on PRTG app, so i need to locate js file on PRTG if im right. it is possible to do that?

0 Karma

493669
Super Champion

So if you want to drilldown to dashboard on another app then you need to give full url under window.open stanza in js. for ex.

$('#panel1').click(function() {
        window.open(
                    'http://localhost:8000/en-GB/app/PRTG/Dashboard_view_name',
                    '_blank' // <- This is what makes it open in a new window.
                  );
      });

and no need to include that js in PRTG app only include it in app from where you want this on click functionality.

493669
Super Champion

ok.. I think I got your issue...
go to Settings>>User interface »Views
here check your SolarwindsGroupCircuit dashboard view name it might be different...?

0 Karma

hafizuddin
Path Finder

yeah i notice it the view name is different where it name it solarwinds. so I nee change the SolarwindsGroupCircuit to solarwinds at my js file?
if yes, I already make change to js a couple of minutes ago but it seem not work

0 Karma

493669
Super Champion

after making changes in js have you bump i.e. splunk_server/en-GB/_bump like for localhost it will be http://localhost:8000/en-GB/_bump and then click on bump_version

hafizuddin
Path Finder

how many bump need I click...I already click it 5 times means version 5 and refresh back my browser and try click the icon back but nothing happen...no popup anymore

0 Karma

493669
Super Champion

only one bump is fine....Go to your solarwinds view (Settings>>User interface »Views) and check permissions, set to All apps and give Read permission to everyone

hafizuddin
Path Finder

wow amazing...it working after I bump and change permission...thank you so much...

one question:
if I had many status indicator in one dashboard and every status indicator need to popup to different dashboard.how I make it?can we set the script for each status indicator?
I notice our activity today just for whole dashboard where we call the script. i'm right?

0 Karma

493669
Super Champion

are you talking in same panel you need to have to drilldown to different dashboard ? if so then you need to set token and as per token selection you can go to new dashboard

0 Karma

493669
Super Champion

and if you have different panels then give that panel id and use that id in js...
if you have resolved your question then please accept the answer and do upvote the comments which helped you...
Thanks

493669
Super Champion

add this view name in your js and bump once

0 Karma

493669
Super Champion

Hi @hafizuddin,
It seems you have placed js in status indicator app but your dashboard xml is in different app so you need to move your js in specific app where your dashboard xml is created : C:\Program Files\Splunk\etc\apps\<app_name>\appserver\static\

hafizuddin
Path Finder

i already place the js file same as dashboard xml created..it working popup but appear page not found

0 Karma

micahkemp
Champion

Potentially silly question, but did you restart splunk (or at least /debug/refresh) after you placed the js and xml?

0 Karma

hafizuddin
Path Finder

I already restart splunk via cmd 2 to 3 times but page not found still not resolve

0 Karma

sureshkandi
Explorer

from where you got this status indicator I am not finding this globe indicator.

0 Karma

493669
Super Champion

the dashboard which you have created is under status indicator app or different app?

0 Karma

hafizuddin
Path Finder

the dashboard on search app folder and the java script on status indicator app folder...

0 Karma
Get Updates on the Splunk Community!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...