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!

Index This | Why did the turkey cross the road?

November 2025 Edition  Hayyy Splunk Education Enthusiasts and the Eternally Curious!   We’re back with this ...

Enter the Agentic Era with Splunk AI Assistant for SPL 1.4

  &#x1f680; Your data just got a serious AI upgrade — are you ready? Say hello to the Agentic Era with the ...

Feel the Splunk Love: Real Stories from Real Customers

Hello Splunk Community,    What’s the best part of hearing how our customers use Splunk? Easy: the positive ...