Splunk Search

button token to control search for a panel


Hi i have a panel whose search i am trying to control from button which sets a token to true - $memory_chart$

i have included the below in search

  <title>Database Connections</title>
      <query>|search *  $memory_chart$ index=XXXX   itemKey ="ms.db.connection_count" name = "$Host$"  |  timechart eval(round($statistic$(value),0)) as "connection_count"</query>

now panel search starts when button is clicked and $memory_chart$ is true but the search is not working

  • true index=XXXX itemKey ="ms.db.connection_count" name = "$Host$" | timechart eval(round($statistic$(value),0)) as "connection_count"

Any idea how to fix this.

Tags (1)
0 Karma


Use the depends attribute of SimpleXML to display panels when tokens are present: http://docs.splunk.com/Documentation/Splunk/6.3.3/Viz/PanelreferenceforSimplifiedXML#panel

0 Karma
Get Updates on the Splunk Community!

Introducing the Splunk Community Dashboard Challenge!

Welcome to Splunk Community Dashboard Challenge! This is your chance to showcase your skills in creating ...

Get the T-shirt to Prove You Survived Splunk University Bootcamp

As if Splunk University, in Las Vegas, in-person, with three days of bootcamps and labs weren’t enough, now ...

Wondering How to Build Resiliency in the Cloud?

IT leaders are choosing Splunk Cloud as an ideal cloud transformation platform to drive business resilience,  ...