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!

.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 ...

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...