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!

Splunk + ThousandEyes: Correlate frontend, app, and network data to troubleshoot ...

 Are you tired of troubleshooting delays caused by siloed frontend, application, and network data? We've got a ...

Splunk Observability for AI

Don’t miss out on an exciting Tech Talk on Splunk Observability for AI!Discover how Splunk’s agentic AI ...

🔐 Trust at Every Hop: How mTLS in Splunk Enterprise 10.0 Makes Security Simpler

From Idea to Implementation: Why Splunk Built mTLS into Splunk Enterprise 10.0  mTLS wasn’t just a checkbox ...