Splunk Search

average count events

Shark2112
Communicator

Hey guys.

I need to know what ip have less events then avarage of all devices.

for example:
ip events
1.1.1.1 11
2.2.2.2 10
3.3.3.3 9
4.4.4.4 1

so average is 7.75 and i want to find ip 4.4.4.4

Tags (1)
0 Karma
1 Solution

javiergn
Super Champion

Eventstats is your friend. Assuming your fields are named IP and events:

| eventstats avg(events) as avg_events
| where events < avg_events

View solution in original post

javiergn
Super Champion

Eventstats is your friend. Assuming your fields are named IP and events:

| eventstats avg(events) as avg_events
| where events < avg_events
Get Updates on the Splunk Community!

Join Us for Splunk University and Get Your Bootcamp Game On!

If you know, you know! Splunk University is the vibe this summer so register today for bootcamps galore ...

.conf24 | Learning Tracks for Security, Observability, Platform, and Developers!

.conf24 is taking place at The Venetian in Las Vegas from June 11 - 14. Continue reading to learn about the ...

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...