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!

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...