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!

Routing logs with Splunk OTel Collector for Kubernetes

The Splunk Distribution of the OpenTelemetry (OTel) Collector is a product that provides a way to ingest ...

Welcome to the Splunk Community!

(view in My Videos) We're so glad you're here! The Splunk Community is place to connect, learn, give back, and ...

Tech Talk | Elevating Digital Service Excellence: The Synergy of Splunk RUM & APM

Elevating Digital Service Excellence: The Synergy of Real User Monitoring and Application Performance ...