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!

Introducing the Splunk Community Dashboard Challenge!

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

Built-in Service Level Objectives Management to Bridge the Gap Between Service & ...

Wednesday, May 29, 2024  |  11AM PST / 2PM ESTRegister now and join us to learn more about how you can ...

Get Your Exclusive Splunk Certified Cybersecurity Defense Engineer Certification at ...

We’re excited to announce a new Splunk certification exam being released at .conf24! If you’re headed to Vegas ...