Splunk Search

How to edit my timechart search to only return results where the (average) response time is greater than 500?

marees123
Path Finder

Hi All,

I'm using the search below for getting the avg response time that is greater than 500.

index=web <data> | timechart avg(api-response-time)

I'm getting results, but I would like to get the results where response time value is greater than 500.

Please help/

0 Karma
1 Solution

aljohnson_splun
Splunk Employee
Splunk Employee

So if you want to filter so that you have an average of all response times that were initally over 500, you'd have:

index=web <data> api-response-time>500
| timechart avg(api-response-time)

If you want to filter so that you have averages of all response times, and only retain the averages that are over 500, you'd have:

index=web <data>
| timechart avg(api-response-time) as average
| where average > 500

View solution in original post

aljohnson_splun
Splunk Employee
Splunk Employee

So if you want to filter so that you have an average of all response times that were initally over 500, you'd have:

index=web <data> api-response-time>500
| timechart avg(api-response-time)

If you want to filter so that you have averages of all response times, and only retain the averages that are over 500, you'd have:

index=web <data>
| timechart avg(api-response-time) as average
| where average > 500

marees123
Path Finder

Hi AlJohnson...

Thanks for the query.. It worked as expected...

Thanks again 🙂

0 Karma
Get Updates on the Splunk Community!

Splunk Forwarders and Forced Time Based Load Balancing

Splunk customers use universal forwarders to collect and send data to Splunk. A universal forwarder can send ...

NEW! Log Views in Splunk Observability Dashboards Gives Context From a Single Page

Today, Splunk Observability releases log views, a new feature for users to add their logs data from Splunk Log ...

Last Chance to Submit Your Paper For BSides Splunk - Deadline is August 12th!

Hello everyone! Don't wait to submit - The deadline is August 12th! We have truly missed the community so ...