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!

Enter the Splunk Community Dashboard Challenge for Your Chance to Win!

The Splunk Community Dashboard Challenge is underway! This is your chance to showcase your skills in creating ...

.conf24 | Session Scheduler is Live!!

.conf24 is happening June 11 - 14 in Las Vegas, and we are thrilled to announce that the conference catalog ...

Introducing the Splunk Community Dashboard Challenge!

Welcome to Splunk Community Dashboard Challenge! This is your chance to showcase your skills in creating ...