Splunk Search

button token to control search for a panel

vinay4444
Explorer

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

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

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

martin_mueller
SplunkTrust
SplunkTrust

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