Skip to Content
Splunk: Enterprise Operational Intelligence Delivered
book

Splunk: Enterprise Operational Intelligence Delivered

by Betsy Page Sigman, Erickson Delgado, Josh Diakun, Paul R Johnson, Derek Mock, Ashish Kumar Tulsiram Yadav
February 2017
Beginner to intermediate
962 pages
21h 26m
English
Packt Publishing
Content preview from Splunk: Enterprise Operational Intelligence Delivered

Search command - stats

The most common use of the stats command is to get a count of the total number of events that are the product of a search. To see how this works, run the following search query. Notice that the pipe that precedes the stats command filters the data that will be included in the final count:

SPL> index=main earliest=-30m latest=now | stats count

The preceding query will result in a single number that represents the total of all events within the given time modifier. Change the time modifier and the number should be reduced:

SPL> index=main earliest=-15m latest=now | stats count

You may be wondering where the count came from. The true format of a stats command is stats function(X). This asks the system to return the result of ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

Splunk Operational Intelligence Cookbook

Splunk Operational Intelligence Cookbook

Josh Diakun, Paul R Johnson, Derek Mock
Splunk Operational Intelligence Cookbook - Second Edition

Splunk Operational Intelligence Cookbook - Second Edition

Josh Diakun, Jose E. Hernandez, Derek Mock, Paul R. Johnson
IBM Tivoli Storage Manager as a Data Protection Solution

IBM Tivoli Storage Manager as a Data Protection Solution

Mary Lovelace, Gerd Becker, Rosane Langnor, Mikael Lindstrom, Pia Nymann, Felipe Peres, Norbert Pott, Julien Sauvanet, Gokhan Yildirim

Publisher Resources

ISBN: 9781787288256