Splunk Enterprise Security

token condition match

sahana
Engager

Hi,

I have a parent panel which has below table panel

Function NameSuccessFailureSLA
greet34513.5
NGA43067.5
Customer54145

this has two drilldown panel

the 1st drilldown panel should appear if we click the column value failure.

the 2nd drilldown panel should appear if we click the column value SLA.

Thanks in advance,

 

Tags (1)
0 Karma

kamlesh_vaghela
SplunkTrust
SplunkTrust

@sahana 

Try this.

<dashboard>
  <label>Drilldown By Value</label>
  <row>
    <panel>
      <table>
        <search>
          <query>| makeresults | eval _raw="Function_Name,Success,Failure,SLA
greet,34,5,13.5
NGA,43,0,67.5
Customer,54,1,45" | multikv forceheader=1
| table Function_Name	Success	Failure	SLA</query>
          <earliest>-24h@h</earliest>
          <latest>now</latest>
        </search>
        <option name="drilldown">cell</option>
        <drilldown>
          <condition match="$click.name2$ ==&quot;Failure&quot;">
            <set token="flag">Failure Clicked. Value = $click.value2$</set>
          </condition>
          <condition match="$click.name2$ ==&quot;SLA&quot;">
            <set token="flag">SLA Clicked. Value = $click.value2$</set>
          </condition>
          <condition>
            <unset token="flag" />
          </condition>
        </drilldown>
      </table>
    </panel>
  </row>
  <row>
    <panel>
      <html>$flag$</html>
    </panel>
  </row>
</dashboard>

 

Please refer below link for more info.

https://docs.splunk.com/Documentation/Splunk/8.2.5/Viz/DrilldownIntro

 

Thanks
KV


If any of my reply helps you to solve the problem Or gain knowledge, an upvote would be appreciated.

Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

[Puzzles] Solve, Learn, Repeat: Character substitutions with Regular Expressions

This challenge was first posted on Slack #puzzles channelFor BORE at .conf23, we had a puzzle question which ...

Splunk Community Badges!

  Hey everyone! Ready to earn some serious bragging rights in the community? Along with our existing badges ...

[Puzzles] Solve, Learn, Repeat: Matching cron expressions

This puzzle (first published here) is based on matching timestamps to cron expressions.All the timestamps ...