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!

Built-in Service Level Objectives Management to Bridge the Gap Between Service & ...

Wednesday, May 29, 2024  |  11AM PST / 2PM ESTRegister now and join us to learn more about how you can ...

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

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