Splunk Enterprise

Since upgrading, why are there no errors when eventstats returns incorrect values?

genesiusj
Builder

Hello,

We are using Splunk v8.2.5 (Build:77015bc7a462 if this helps).

Since we upgraded we no longer receive errors or warnings when stats, eventstats, or streamstats is not returning the correct values. We have a lookup csv of nearly 3 million records containing several fields that need to be counted and compared: prize code, address, email, etc.
The eventstats command fails and there is no error or warning. However, the stats command works. This would be okay if we had only one field to be counted. We have 4-8 fields that must be counted and compared. Using the stats command quickly becomes a nightmare because every field that is not being counted in relation to the particular field in the by clause would need to be added using values(FIELDNAME). The eventstats command would be cleaner.

Or would it?

 

 

 

| bin _time span=1d 
| eventstats count(prize_code) as count_prize_code by _time, address
| dedup address, count_prize_code, _time
| eventstats count(_time) as count_prize_code_dates, sum(count_prize_code) as sum_count_prize_code by address
| dedup address, count_prize_code_dates, sum_count_prize_code
| table address, count_prize_code_dates, sum_count_prize_code

 

 

 

Thanks and God bless,
Genesius

Labels (1)
Tags (3)
0 Karma
Get Updates on the Splunk Community!

Enterprise Security Content Update (ESCU) | New Releases

In December, the Splunk Threat Research Team had 1 release of new security content via the Enterprise Security ...

Why am I not seeing the finding in Splunk Enterprise Security Analyst Queue?

(This is the first of a series of 2 blogs). Splunk Enterprise Security is a fantastic tool that offers robust ...

Index This | What are the 12 Days of Splunk-mas?

December 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...