Splunk Search

How to get aggregate total of 3 months of response times in chart

fisuser1
Contributor

I've created a search to chart the average response times of each application over the past 3 months. How would I get the aggregate total of each month per application?

Search:

COMPANY="FOO" PORT="*" 
| eval AVG_RESP_TIME = AVG_RESP_TIME/1000 
| bin span=1mon _time 
| chart avg(AVG_RESP_TIME) as average over PORT by date_month
| rename PORT as Application

Output would like similar to:

Application June July August
PDTeller 0.93 ms 0.99 ms 0.90 ms
WebAdmin 1.81 ms 2.51 ms 2.36 ms
WebCSR 1.36 ms 1.57 ms 1.42 ms
WebClient 3.99 ms 2.89 ms 2.53 ms
Xpress 6.74 ms 6.98 ms 6.67 ms
Aggregate Total 2.97 ms 2.99 ms 2.78 ms

0 Karma

somesoni2
Revered Legend

Try this (added last line to your existing search)

my search COMPANY="FOO" PORT="*" 
| eval AVG_RESP_TIME = AVG_RESP_TIME/1000 
| bin span=1mon _time 
| chart avg(AVG_RESP_TIME) as average over PORT by date_month
| rename PORT as Application
| appendpipe [| stats avg(*) as * | eval Application="AGGREGATE" ]
0 Karma
Get Updates on the Splunk Community!

Splunk Observability Cloud's AI Assistant in Action Series: Auditing Compliance and ...

This is the third post in the Splunk Observability Cloud’s AI Assistant in Action series that digs into how to ...

Splunk Community Badges!

  Hey everyone! Ready to earn some serious bragging rights in the community? Along with our existing badges ...

What You Read The Most: Splunk Lantern’s Most Popular Articles!

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...