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!

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...

New in Observability Cloud - Explicit Bucket Histograms

Splunk introduces native support for histograms as a metric data type within Observability Cloud with Explicit ...