Splunk Search

How do you make a multiple cumulative time series?

isaacsanders
Engager

I can make mulitple summed time series.

source="splunk-source"
| timechart sum(figure) as figure by category

I can make a single cumulative summed time series.

source="splunk-source"
| timechart sum(figure) as figure
| streamstats sum(figure) as cumulative_figure
| timechart last(cumulative_figure) 

But I can't make multiple cumulative summed time series.

I would appreciate some help with that.

0 Karma
1 Solution

somesoni2
Revered Legend

Give this a try

source="splunk-source"
 | timechart sum(figure) as figure by category
 | streamstats sum(*) as cumulative_*
 | timechart last(cumulative_*) 

View solution in original post

somesoni2
Revered Legend

Give this a try

source="splunk-source"
 | timechart sum(figure) as figure by category
 | streamstats sum(*) as cumulative_*
 | timechart last(cumulative_*) 
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 ...