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!

Building Reliable Asset and Identity Frameworks in Splunk ES

 Accurate asset and identity resolution is the backbone of security operations. Without it, alerts are ...

Cloud Monitoring Console - Unlocking Greater Visibility in SVC Usage Reporting

For Splunk Cloud customers, understanding and optimizing Splunk Virtual Compute (SVC) usage and resource ...

Automatic Discovery Part 3: Practical Use Cases

If you’ve enabled Automatic Discovery in your install of the Splunk Distribution of the OpenTelemetry ...