Dashboards & Visualizations

How to drilldown to specific page for each value?

khanlarloo
Explorer

Hi

I have several fields with different values in my dashboard. When I click on any of the values, I want to go to the page corresponding to that amount .

How can I do that?

 A 
  1
  2
  3

When I click on 3 go to page that shows the result for 3. and when click on 2 go to page that show result for 2 ...
each of them have different page on my app.

0 Karma
1 Solution

vnravikumar
Champion

Hi

Try like

<dashboard>
  <label>drilldown</label>
  <row>
    <panel>
      <table>
        <search>
          <query>| makeresults 
| eval A="1,2,3" 
| makemv delim="," A
| mvexpand A |table A</query>
          <earliest>-24h@h</earliest>
          <latest>now</latest>
        </search>
        <option name="drilldown">cell</option>
        <drilldown>
          <condition match="'click.value' == &quot;1&quot;">
            <link target="_blank">/app/search/testdashboard1</link>
          </condition>
          <condition match="'click.value' == &quot;2&quot;">
            <link target="_blank">/app/search/testdashboard2</link>
          </condition>
          <condition match="'click.value' == &quot;3&quot;">
            <link target="_blank">/app/search/testdashboard3</link>
          </condition>
        </drilldown>
      </table>
    </panel>
  </row>
</dashboard>

View solution in original post

0 Karma

khanlarloo
Explorer

if i want to say if index=a then go to specific page how can i say ?
my query is :
index= a or index=b | stats count by index
i using chart

0 Karma

vnravikumar
Champion

Hi

Try like

<dashboard>
  <label>drilldown</label>
  <row>
    <panel>
      <table>
        <search>
          <query>| makeresults 
| eval A="1,2,3" 
| makemv delim="," A
| mvexpand A |table A</query>
          <earliest>-24h@h</earliest>
          <latest>now</latest>
        </search>
        <option name="drilldown">cell</option>
        <drilldown>
          <condition match="'click.value' == &quot;1&quot;">
            <link target="_blank">/app/search/testdashboard1</link>
          </condition>
          <condition match="'click.value' == &quot;2&quot;">
            <link target="_blank">/app/search/testdashboard2</link>
          </condition>
          <condition match="'click.value' == &quot;3&quot;">
            <link target="_blank">/app/search/testdashboard3</link>
          </condition>
        </drilldown>
      </table>
    </panel>
  </row>
</dashboard>
0 Karma

khanlarloo
Explorer

THank You . It works

0 Karma
Get Updates on the Splunk Community!

Get the T-shirt to Prove You Survived Splunk University Bootcamp

As if Splunk University, in Las Vegas, in-person, with three days of bootcamps and labs weren’t enough, now ...

Introducing the Splunk Community Dashboard Challenge!

Welcome to Splunk Community Dashboard Challenge! This is your chance to showcase your skills in creating ...

Wondering How to Build Resiliency in the Cloud?

IT leaders are choosing Splunk Cloud as an ideal cloud transformation platform to drive business resilience,  ...