Splunk Search

Search query for count of max response time of pages greater than xx

subhadipc
Explorer

I have a search query that reads as follows:

.....| eval time_sec = round(time_taken/1000)
| chart max(time_sec) as max_response_time by cs_uri_stem
| where max_response_time > xx

where .... gives a list of pages and sources, and xx is the time in figures. The search is programmed to take the last 7 day data (i.e., uses -7d).

The output gives the pages where the max_response_time is greater than xx. It does not state how many times did the max_response_time cross xx. How can I tune the search query so that it gives me a count of how many times did the max response time of the page cross xx. Please note, the output should only list the pages whose max response time crossed xx at least once, and the remaining pages be ignored.

Tags (2)
0 Karma

Damien_Dallimor
Ultra Champion

Try something like :

...| eval time_sec = round(time_taken/1000) | where time_sec > xx | stats count by cs_uri_stem
0 Karma
Get Updates on the Splunk Community!

Modernize your Splunk Apps – Introducing Python 3.13 in Splunk

We are excited to announce that the upcoming releases of Splunk Enterprise 10.2.x and Splunk Cloud Platform ...

New Release | Splunk Cloud Platform 10.1.2507

Hello Splunk Community!We are thrilled to announce the General Availability of Splunk Cloud Platform 10.1.2507 ...

🌟 From Audit Chaos to Clarity: Welcoming Audit Trail v2

🗣 You Spoke, We Listened  Audit Trail v2 wasn’t written in isolation—it was shaped by your voices.  In ...