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!

What's new in Splunk Cloud Platform 9.1.2312?

Hi Splunky people! We are excited to share the newest updates in Splunk Cloud Platform 9.1.2312! Analysts can ...

What’s New in Splunk Security Essentials 3.8.0?

Splunk Security Essentials (SSE) is an app that can amplify the power of your existing Splunk Cloud Platform, ...

Let’s Get You Certified – Vegas-Style at .conf24

Are you ready to level up your Splunk game? Then, let’s get you certified live at .conf24 – our annual user ...