Dashboards & Visualizations

How to control drilldown on dashboard chart click?

clairebesson
Explorer

Hey everyone,
I have a graph as shown in the figure below :
alt text

Server1 and Server2 are two different sources.
For now I did this drilldown :
<drilldown target="_What - Track Up Aps">

      <condition field="Up">
        <link>
      /app/search/what__track_up_aps?form.Up=$click.value$
    </link>
      </condition>
      <condition field="Down">
   <link>
      /app/search/what__track_down_aps?form.Down=$click.value$
    </link>
      </condition>


  </drilldown>

When you click on Up you go on the dashboard at the address : /app/search/what__track_up_aps?

And when you click on Down you go on the dashboard at the address :
/app/search/what__track_down_aps?

However, I want to do that:
- When I click on Up from Server1 I go on dashboard1
- When I click on Up from Server2 I go on dashboard2

  • When I click on Down from Server1 I go on dashboard3
  • When I click on Down from Server2 I go on dashboard4

I don’t know how to put a condition on “Server1” or “Server2”
Could you please help me with that ?
Thanks in advance

Tags (3)
0 Karma

martin_mueller
SplunkTrust
SplunkTrust
0 Karma

martin_mueller
SplunkTrust
SplunkTrust

Your top produces three fields, Type count percent. Yet, you're telling the input to look for labels and values in the source field... which does not exist in your top results.

0 Karma

clairebesson
Explorer

thanks. So I tried to add a dropdown on which I can choose to display server 1 or server 2.
I looked at the example on app Splunk 6x Dashboard Examples. There is a dropdown with different sourcetype.
I did the same but it didn't work. In my case the dropdown permit to choose between different sources (server1.csv and server2.csv)

<input type="dropdown" token="source" searchWhenChanged="true">
  <label>Select a source:</label>
  <prefix>source="</prefix>
  <suffix>"</suffix>
  <choice value="*">All</choice>
  <search>
    <query>source=airwave* Status=Down| top limit=20 Type</query>
  </search>
  <fieldForLabel>source</fieldForLabel>
  <fieldForValue>source</fieldForValue>
</input>
0 Karma

martin_mueller
SplunkTrust
SplunkTrust

Yeah, add form fields at the top to select the server and pre-populate this with the value from the drilldown.

0 Karma

clairebesson
Explorer

sorry I am a newbie in Splunk. I do not know at all how to do that.
could you please help me with that ?

0 Karma

martin_mueller
SplunkTrust
SplunkTrust

Are you sure you want different dashboards for each server instead of passing the server name as a parameter to the same dashboard?

0 Karma

clairebesson
Explorer

you mean to have one dashboard for the Up. On that dashboard I create a menu in order to choose which server I want to display ?

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 ...

Modernize your Splunk Apps – Introducing Python 3.13 in Splunk

We are excited to announce that the upcoming releases of Splunk Enterprise 10.2.x and Splunk Cloud Platform ...

Step into “Hunt the Insider: An Splunk ES Premier Mystery” to catch a cybercriminal ...

After a whole week of being on call, you fell asleep on your keyboard, and you hit a sequence of buttons that ...