Splunk Search

How to edit my search to count the number of requests per IP per 30 minutes?

yarafatin2
New Member

I need to get the count of requests per IP per 30 minutes.
The stats column headers should be clientip and all the 30 minute intervals - 2017-03-17 02:30:00, 2017-03-17 03:00:00, 2017-03-17 03:30:00.
The count for each of those 30 minutes interval should appear for each of the IP addresses.

I tried - host="test" sourcetype=access_log4 | bucket _time span=30m | stats count by clientip, _time
This groups the clientip and _time as unique columns. I want clientip as the only unique column and the minutes to appear dynamically as column headers.

0 Karma
1 Solution

woodcock
Esteemed Legend

Like this:

 host="test" sourcetype=access_log4 | bucket _time span=30m | chart count by clientip _time

View solution in original post

0 Karma

woodcock
Esteemed Legend

Like this:

 host="test" sourcetype=access_log4 | bucket _time span=30m | chart count by clientip _time
0 Karma
Get Updates on the Splunk Community!

Stay Connected: Your Guide to May Tech Talks, Office Hours, and Webinars!

Take a look below to explore our upcoming Community Office Hours, Tech Talks, and Webinars this month. This ...

They're back! Join the SplunkTrust and MVP at .conf24

With our highly anticipated annual conference, .conf, comes the fez-wearers you can trust! The SplunkTrust, as ...

Enterprise Security Content Update (ESCU) | New Releases

Last month, the Splunk Threat Research Team had two releases of new security content via the Enterprise ...