Search icon
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Implementing Splunk (Update)

You're reading from  Implementing Splunk (Update)

Product type Book
Published in Jul 2015
Publisher
ISBN-13 9781784391607
Pages 506 pages
Edition 1st Edition
Languages

Table of Contents (20) Chapters

Implementing Splunk Second Edition
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Preface
The Splunk Interface Understanding Search Tables, Charts, and Fields Data Models and Pivots Simple XML Dashboards Advanced Search Examples Extending Search Working with Apps Building Advanced Dashboards Summary Indexes and CSV Files Configuring Splunk Advanced Deployments Extending Splunk Index

Building forms


Forms allow you to make a template that needs one or more pieces of information supplied to run. You can build these directly using raw XML, but I find it simpler to build a simple dashboard and then modify the XML accordingly. The other option is to copy an existing dashboard and modify it to meet your needs. We will touch on a simple use case in the following section.

Creating a form from a dashboard

First, let's think of a use case that we might be able to use with our previous example. How about a form that tells us about the forecast events for a particular year? Let's start with our previous search example:

sourcetype="*" Forecast | timechart count as "Forecast Events" by date_month

Since we have already created a dashboard from this query (in the section Using wizards to build dashboards), let's look at the XML for our dashboard. As we did earlier, click on Edit Source (on the dashboard editor). The XML for our dashboard looks like the following code. Notice the occurrence...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime}