Splunk Search

eventstats

passing
Explorer

Noob question. What is the different between stats and eventstats commands?

Tags (2)
1 Solution

cpeteman
Contributor

Straight from documentation:

"Generate summary statistics of all existing fields in your search results and save them as values in new fields. Eventstats is similar to the stats command, except that aggregation results are added inline to each event and only if the aggregation is pertinent to that event."

Also, here are the link to the documentation files for stats and evenstats respectively:

http://docs.splunk.com/Documentation/Splunk/5.0.3/SearchReference/Stats
http://docs.splunk.com/Documentation/Splunk/5.0.3/SearchReference/Eventstats

There is no such thing as a question too "noob" but do try to do a little research before asking.

View solution in original post

tmartin
Splunk Employee
Splunk Employee

Adding this to the conversation here ... hope it helps

http://blogs.splunk.com/2014/04/01/search-command-stats-eventstats-and-streamstats-2/

sahr
Path Finder

This blog was really useful for me when attempting to understand streamstats and eventstats. Thanks @tmartin

0 Karma

cpeteman
Contributor

Straight from documentation:

"Generate summary statistics of all existing fields in your search results and save them as values in new fields. Eventstats is similar to the stats command, except that aggregation results are added inline to each event and only if the aggregation is pertinent to that event."

Also, here are the link to the documentation files for stats and evenstats respectively:

http://docs.splunk.com/Documentation/Splunk/5.0.3/SearchReference/Stats
http://docs.splunk.com/Documentation/Splunk/5.0.3/SearchReference/Eventstats

There is no such thing as a question too "noob" but do try to do a little research before asking.

msarro
Builder

To be honest, I've used splunk for 3 years now and I still find the documentation to be pretty opaque at times - especially when you get into some of the less common commands like eventstats and streamstats. So I wouldn't worry too much. Do consult the docs before asking, but if you don't understand 100%, don't feel bad.

passing
Explorer

Sorry. Thanks!

0 Karma
Get Updates on the Splunk Community!

Join Us for Splunk University and Get Your Bootcamp Game On!

If you know, you know! Splunk University is the vibe this summer so register today for bootcamps galore ...

.conf24 | Learning Tracks for Security, Observability, Platform, and Developers!

.conf24 is taking place at The Venetian in Las Vegas from June 11 - 14. Continue reading to learn about the ...

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...