Hi All I'm new to Splunk and I'm confused between stats eventstats and streamstats. Can anyone help me to understand?
stats
Stats calculate aggregate statistics over the dataset, similar to SQL aggregation. If called without a by clause, one row is produced, which represents the aggregation over the entire incoming result set.
eventstats
Eventstats calculates a statistical result same as stats command only difference is it does not create statistical results, it aggregates them to the original raw data.
streamstats
Streamstats command uses events before the current event to compute the aggregate statistics that are applied to each event.
-----------------------------------------------------
If this help your like will be appreciated 🙂
stats replaces the pipleline - only calculated values based all the data in the pipeline are passed down the line
eventstats adds to the pipeline as a whole - calculated values are based on all the data in the pipeline and added as additional fields to the rows passed down the line
streamstats adds to the pipeline as it passes through - calculated values are based on the data received so far