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!

CX Day is Coming!

Customer Experience (CX) Day is on October 7th!! We're so excited to bring back another day full of wonderful ...

Strengthen Your Future: A Look Back at Splunk 10 Innovations and .conf25 Highlights!

The Big One: Splunk 10 is Here!  The moment many of you have been waiting for has arrived! We are thrilled to ...

Now Offering the AI Assistant Usage Dashboard in Cloud Monitoring Console

Today, we’re excited to announce the release of a brand new AI assistant usage dashboard in Cloud Monitoring ...