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!

Introducing the 2024 SplunkTrust!

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

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...