Splunk Search

How to search average response times at a specific time?

nlrdy
Explorer

Hello,

I'm trying to write a splunk query but dont know where to start with. Is it possible to write a query to search for response times at a particular time on a day for example, comparing the response times today at 8:00 AM vs yesterday at 8:00 AM.

Thank you

Tags (3)
1 Solution

somesoni2
Revered Legend

Try something like this

your base search earliest=-1d@d latest=now |  where strftime(_time,"%H:%M")="08:00" | eval Period=if(_time>relative_time(now(),"-24h"),"Today","Yesterday") | eval temp=1| chart values(response_time) over temp by Period | fields - temp

View solution in original post

0 Karma

somesoni2
Revered Legend

Try something like this

your base search earliest=-1d@d latest=now |  where strftime(_time,"%H:%M")="08:00" | eval Period=if(_time>relative_time(now(),"-24h"),"Today","Yesterday") | eval temp=1| chart values(response_time) over temp by Period | fields - temp
0 Karma

nlrdy
Explorer

thank you. this helps. what if I need this to be searched over three days for example today, yesterday and a week ago at the same time.

0 Karma
Get Updates on the Splunk Community!

Index This | When is October more than just the tenth month?

October 2025 Edition  Hayyy Splunk Education Enthusiasts and the Eternally Curious!   We’re back with this ...

Observe and Secure All Apps with Splunk

  Join Us for Our Next Tech Talk: Observe and Secure All Apps with SplunkAs organizations continue to innovate ...

What’s New & Next in Splunk SOAR

 Security teams today are dealing with more alerts, more tools, and more pressure than ever.  Join us for an ...