Splunk Search

Web service response metrics

dubey20
New Member

I want to plot a graph for web service response for last 'n' hours. I want the web service actual response time to be on Y axis and each request to be on X axis. I'm capturing the response time for each request. Here is the log -

2015-10-09 09:48:49.433 INFO : [com.mycomany.LoggingAspect:54] 0bc36bc9-dee2-4dc9-9450-ce36db8ffbc7 Method=helloworld, HttpStatusCode=200, ElapsedTime=100

0 Karma

aljohnson_splun
Splunk Employee
Splunk Employee

You still need to decide on your aggregator. Average ? Max? Stdev? Count? Let's assume average. Let's also assume n = 2

index=foo sourcetype=bar earliest=-2h
| chart avg(ElapsedTime) as Average_Elapsed_Time by HttpStatusCode

Maybe you want to checkout the method as well:

index=foo sourcetype=bar earliest=-2h
| chart avg(ElapsedTime) as Average_Elapsed_Time by HttpStatusCode, Method

You might want to also investigate timechart:

index=foo sourcetype=bar earliest=-2h
| timechart span=5m avg(ElapsedTime) as Average_Elapsed_Time by HttpStatusCode
0 Karma
Get Updates on the Splunk Community!

Webinar Recap | Revolutionizing IT Operations: The Transformative Power of AI and ML ...

The Transformative Power of AI and ML in Enhancing Observability   In the realm of IT operations, the ...

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...