Splunk Search

To get IP counts by no of occurence

naval1992
Engager

I have a query which can give DIfferent IPS that are hitting to the top URI's 

source= some source 404 | stats count values(Real_IP) as Real_IP by URI | sort - count

naval1992_0-1601376004310.png



I want to know out of these given IP's which IP occurred how many times in the same formate and in the same query  

Labels (4)
Tags (1)
0 Karma

ITWhisperer
SplunkTrust
SplunkTrust
source= some source 404 | stats count by URI Real_IP | sort - count

naval1992
Engager

It looks good but through this Query i will not get the URI no of occurrences as in my search query i was getting is there any way this query can fit in my search query 

 

0 Karma

ITWhisperer
SplunkTrust
SplunkTrust

Totals as an extra column on each row

source= some source 404 | stats count by URI Real_IP 
| eventstats sum(count) as Total by URI
| sort - Total

 

0 Karma
Get Updates on the Splunk Community!

Data Management Digest – December 2025

Welcome to the December edition of Data Management Digest! As we continue our journey of data innovation, the ...

Index This | What is broken 80% of the time by February?

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

Unlock Faster Time-to-Value on Edge and Ingest Processor with New SPL2 Pipeline ...

Hello Splunk Community,   We're thrilled to share an exciting update that will help you manage your data more ...