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!

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...

New in Observability Cloud - Explicit Bucket Histograms

Splunk introduces native support for histograms as a metric data type within Observability Cloud with Explicit ...