Dashboards & Visualizations

$click.name$ returns "result" instead of the trellis title for a single value in drilldown.

nbal0013
New Member

I have a trellis of single values with the drilldown set up to set a token to $click.name$.
I'm trying to have the token set to the title above the value clicked by the user, but when they click it the token is set to "result".
Am I doing something wrong?

 <init>
    <set token="test">test</set>
  </init>
  <row>
    <panel>
      <html>
      <h1>$test$</h1>
    </html>
    </panel>
  </row>
  <row>
    <panel>
      <title>Batch Job Trello</title>
      <single>
        <search>
          <query>index=main | stats count by esbTransactionID | head 20</query>
          <earliest>-24h@h</earliest>
          <latest>now</latest>
          <sampleRatio>1</sampleRatio>
        </search>
        <option name="colorBy">value</option>
        <option name="colorMode">block</option>
        <option name="drilldown">all</option>
        <option name="numberPrecision">0</option>
        <option name="rangeColors">["0x65a637","0xf7bc38","0xd93f3c"]</option>
        <option name="rangeValues">[0,1]</option>
        <option name="showSparkline">1</option>
        <option name="showTrendIndicator">1</option>
        <option name="trellis.enabled">1</option>
        <option name="trellis.scales.shared">1</option>
        <option name="trellis.size">medium</option>
        <option name="trellis.splitBy">name</option>
        <option name="trendColorInterpretation">standard</option>
        <option name="trendDisplayMode">absolute</option>
        <option name="unitPosition">after</option>
        <option name="useColors">1</option>
        <option name="useThousandSeparators">1</option>
        <drilldown>
          <set token="test">$click.name$</set>
        </drilldown>
      </single>
    </panel>
  </row>
0 Karma
1 Solution

renjith_nair
SplunkTrust
SplunkTrust

@nbal0013,

For trelli's label, try

         <drilldown>
           <set token="test">$trellis.value$</set>
         </drilldown>

Reference : Predefined tokens for trellis split fields

Happy Splunking!

View solution in original post

renjith_nair
SplunkTrust
SplunkTrust

@nbal0013,

For trelli's label, try

         <drilldown>
           <set token="test">$trellis.value$</set>
         </drilldown>

Reference : Predefined tokens for trellis split fields

Happy Splunking!

nbal0013
New Member

Thanks Renjith,

This seems to have worked

0 Karma

seemanshu
Path Finder

I tried the above mentioned solution, but it doesn't seem to work. Is there any other method?

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