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!

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...

Introducing Splunk Enterprise 9.2

WATCH HERE! Watch this Tech Talk to learn about the latest features and enhancements shipped in the new Splunk ...

Adoption of RUM and APM at Splunk

    Unleash the power of Splunk Observability   Watch Now In this can't miss Tech Talk! The Splunk Growth ...