All Apps and Add-ons

Why does it seem like a checkboxes module does not dispatch my search?

neiljpeterson
Communicator

This view only returns "Loading..."

<view template="dashboard.html" isVisible="true">
  <label>SERVER SELECTOR</label>

  <module name="AccountBar" layoutPanel="appHeader" />
  <module name="AppBar" layoutPanel="appHeader" />
  <module name="SideviewUtils" layoutPanel="viewHeader" />

    <module name="Search" layoutPanel="panel_row1_col1">
      <param name="search">host=* | head 10000 | stats dc(host) by host</param>

      <module name="Checkboxes">
        <param name="labelField">host</param>
        <param name="name">servers</param>
        <param name="valueField">host</param>
        <param name="staticCheckboxes"/>
      </module>

   </module>
</view>

While this view (with the button) returns what I expect. (after the button is pressed obviously)

<view template="dashboard.html" isVisible="true">
  <label>SERVER SELECTOR</label>

  <module name="AccountBar" layoutPanel="appHeader" />
  <module name="AppBar" layoutPanel="appHeader" />
  <module name="SideviewUtils" layoutPanel="viewHeader" />

   <module name="Button" layoutPanel="panel_row1_col1">
   <param name="label">GO!</param>

   <module name="Search" >
      <param name="search">host=* | head 10000 | stats dc(host) by host</param>

      <module name="Checkboxes">
        <param name="labelField">host</param>
        <param name="name">servers</param>
        <param name="valueField">host</param>
        <param name="staticCheckboxes"/>
      </module>

   </module>
</module>
</view>

How do I write this so that the search is dispatched on page load without a button press?

1 Solution

martin_mueller
SplunkTrust
SplunkTrust

Consider setting autoRun="True" on your search.

View solution in original post

martin_mueller
SplunkTrust
SplunkTrust

Consider setting autoRun="True" on your search.

martin_mueller
SplunkTrust
SplunkTrust

Indeed it is. Don't forget to mark this as solved.

0 Karma

neiljpeterson
Communicator

Perfect! It is a shame I somehow missed that in reading over (and over again) the sideview docs. Its so obvious once you know.

Thanks again!

0 Karma
Get Updates on the Splunk Community!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...