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!

Get Your Exclusive Splunk Certified Cybersecurity Defense Engineer at Splunk .conf24 ...

We’re excited to announce a new Splunk certification exam being released at .conf24! If you’re headed to Vegas ...

Share Your Ideas & Meet the Lantern team at .Conf! Plus All of This Month’s New ...

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

Combine Multiline Logs into a Single Event with SOCK: a Step-by-Step Guide for ...

Combine multiline logs into a single event with SOCK - a step-by-step guide for newbies Olga Malita The ...