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!

Join Us for Splunk University and Get Your Bootcamp Game On!

If you know, you know! Splunk University is the vibe this summer so register today for bootcamps galore ...

.conf24 | Learning Tracks for Security, Observability, Platform, and Developers!

.conf24 is taking place at The Venetian in Las Vegas from June 11 - 14. Continue reading to learn about the ...

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...