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!

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...