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!

Splunk Mobile: Your Brand-New Home Screen

Meet Your New Mobile Hub  Hello Splunk Community!  Staying connected to your data—no matter where you are—is ...

Introducing Value Insights (Beta): Understand the Business Impact your organization ...

Real progress on your strategic priorities starts with knowing the business outcomes your teams are delivering ...

Enterprise Security (ES) Essentials 8.3 is Now GA — Smarter Detections, Faster ...

As of today, Enterprise Security (ES) Essentials 8.3 is now generally available, helping SOC teams simplify ...