Splunk Search

How to redirect from a search result to a second search in a dashboard?

abhi04
Communicator

How to redirect from a search result to a second search in a dashboard.
I have a panel in dashboard which displays exceptions count by data centre. Now what I want is that if someone clicks on the data centre exceptions count it should show the count by exceptions and not the entire events.
Can someone help me on this.

Tags (1)
0 Karma

493669
Super Champion

on clicking on exception count do you want to show in same panel or different panel?
if its different panel then use set token and use token in your query
try this run anywhere search:

<dashboard>
  <label>click test</label>
  <row>
    <panel>
      <table>
        <title>search</title>
        <search>
          <query>index=_internal sourcetype=$count_field$| stats count by sourcetype source</query>
          <earliest>-15m@m</earliest>
          <latest>now</latest>
        </search>
        <option name="wrap">true</option>
        <option name="rowNumbers">true</option>
        <option name="drilldown">row</option>
        <option name="dataOverlayMode">none</option>
        <option name="count">10</option>

        <drilldown>
          <set token="count_field">$click.value$</set>
        </drilldown>
      </table>
    </panel depends="$count_field$">
  </row>
  <row>
    <panel>
      <table>
        <title>$count_field$</title>
        <search>
          <query>index=_internal| stats count by source</query>
          <earliest>-15m</earliest>
          <latest>now</latest>
        </search>
        <option name="count">10</option>
        <option name="drilldown">none</option>
      </table>
    </panel>
  </row>
</dashboard>
0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.
Get Updates on the Splunk Community!

Data Persistence in the OpenTelemetry Collector

This blog post is part of an ongoing series on OpenTelemetry. What happens if the OpenTelemetry collector ...

Introducing Splunk 10.0: Smarter, Faster, and More Powerful Than Ever

Now On Demand Whether you're managing complex deployments or looking to future-proof your data ...

Community Content Calendar, September edition

Welcome to another insightful post from our Community Content Calendar! We're thrilled to continue bringing ...