Splunk Search

Single value chart

Deepz2612
Explorer

I have a single value chart,who statistical date is as below

<Field_name>

_____________

<field_value>

 

Now when i click on it,the field name has to be passed as the token value to another panel.

How to make that possible.

Please advice

Labels (1)
Tags (1)
0 Karma

to4kawa
Ultra Champion

sample dashboard:

 

 

<dashboard>
  <label>single_test</label>
  <init>
    <unset>$labels$</unset>
  </init>
  <row>
    <panel id="tables2">
      <title>$titles$</title>
      <single>
        <search>
          <query>| tstats count where index=_internal sourcetype=splunkd by PREFIX("name=")
| sort 1 - count
| rename name= as name
| eval {name}=count
| table * name count
</query>
          <earliest>-24h@h</earliest>
          <latest>now</latest>
          <sampleRatio>1</sampleRatio>
          <done>
            <set token="titles">$result.name$</set>
          </done>
        </search>
        <option name="drilldown">all</option>
        <option name="refresh.display">progressbar</option>
        <drilldown>
          <set token="labels">$row.name$</set>
        </drilldown>
      </single>
    </panel>
    <panel id="tables1">
      <html>
         <style>

          #tables1 {
            width: 75% !important;
          }
          #tables2 {
            width: 25% !important;
          }
          #tables2 .panel-title {
            font-size: 32px !important; 
            padding: 12px 12px 7px 12px !important;
            display: flex;
            justify-content: center;
            font-weight: bold !important;
          }
        </style>
        <p>$labels$</p>
      </html>
    </panel>
  </row>
</dashboard>

 

 

0 Karma
Get Updates on the Splunk Community!

Unlock Database Monitoring with Splunk Observability Cloud

  In today’s fast-paced digital landscape, even minor database slowdowns can disrupt user experiences and ...

Purpose in Action: How Splunk Is Helping Power an Inclusive Future for All

At Cisco, purpose isn’t a tagline—it’s a commitment. Cisco’s FY25 Purpose Report outlines how the company is ...

[Upcoming Webinar] Demo Day: Transforming IT Operations with Splunk

Join us for a live Demo Day at the Cisco Store on January 21st 10:00am - 11:00am PST In the fast-paced world ...