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!

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