Book Image

Implementing Splunk (Update)

Book Image

Implementing Splunk (Update)

Overview of this book

Table of Contents (20 chapters)
Implementing Splunk Second Edition
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Preface
Index

Autorun dashboard


One more important option for your dashboards is the AutoRun setting that is seen in the following screenshot:

When you add fields to submit values (for the search string in a panel, as we did in our example), the Autorun setting indicates if the search in the panels of your dashboard should be run upon loading the page. The default is false. That means that the dashboard will load and wait for the user to enter or select a value and click Submit. Suppose you'd rather load your dashboard and show data right away using some default or standard value. To do that, we could modify our XML like this:

<fieldset autoRun="true">
  <input type="text" token="myyear"><default>2014</default>
   <label>MyYear</label>
  </input>
 </fieldset>

In the preceding code, I've added the Autorun setting to the <fieldset> tag and provided the <default>. When I save my changes, the dashboard will execute (run) the search using the default...