Splunk Search

Counts of events with request_times in certain ranges

davidsumner
Explorer

I'm trying to figure out how to query all of the events from an Apache log and produce a report with counts of the number events with request_time less than 3s, less than 2s and less than 1s.

Labels (1)
0 Karma

davidsumner
Explorer

Thanks for the side message.

cms.apache-access | eval request_time_num = tonumber(request_time)
| eval category = case(
request_time_num < 100000, "<1s",
request_time_num < 200000, "<2s",
request_time_num < 300000, "<3s"
)
| stats count by category
0 Karma
Get Updates on the Splunk Community!

CX Day is Coming!

Customer Experience (CX) Day is on October 7th!! We're so excited to bring back another day full of wonderful ...

Strengthen Your Future: A Look Back at Splunk 10 Innovations and .conf25 Highlights!

The Big One: Splunk 10 is Here!  The moment many of you have been waiting for has arrived! We are thrilled to ...

Now Offering the AI Assistant Usage Dashboard in Cloud Monitoring Console

Today, we’re excited to announce the release of a brand new AI assistant usage dashboard in Cloud Monitoring ...