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

Populating summary indexes with saved searches


A search to populate a summary index is much like any other saved search (see Chapter 2, Understanding Search, for more details on creating saved searches).

The differences are that this search will run periodically, and the results will be stored in the summary index.

So let's build a simple summary search by following these steps:

  1. Start with a search that produces some statistic:

    source="impl_splunk_gen" | stats count by user
  2. Save this search as summary - count by user.

  3. Edit the search in Settings by navigating to Settings | Searches, reports and alerts| summary – count by user.

  4. Set the appropriate times. This is a somewhat complicated discussion. See the How latency affects summary queries section discussed later.

This is continued as shown in the following screenshot:

And finally:

Let's look at the following fields:

  • Search: source="impl_splunk_gen" | stats count by user: This is our query. Later we will use sistats, a special summary index version...