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!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...