Splunk Enterprise

How can I display a value cumulatively every hour?

Alexander17
Engager

How can I display a value cumulatively every hour?
For example 10:00 = 250 pieces, 11:00 = 200 pieces, 12:00 = 150 pieces.
The value should be displayed as follows

10:00 = 250 pieces
11:00 = 450 pieces
12:00 = 600 pieces

Which search command should I enter here?

Thanks in advance!

Labels (1)
0 Karma
1 Solution

scelikok
SplunkTrust
SplunkTrust

Hi @Alexander17,

I didn't notice "cumulative" 🙂

Please try below;

|timechart span=1h count as pieces | streamstats sum(pieces) as pieces
If this reply helps you an upvote and "Accept as Solution" is appreciated.

View solution in original post

0 Karma

scelikok
SplunkTrust
SplunkTrust

Hi @Alexander17,

I didn't notice "cumulative" 🙂

Please try below;

|timechart span=1h count as pieces | streamstats sum(pieces) as pieces
If this reply helps you an upvote and "Accept as Solution" is appreciated.
0 Karma

Alexander17
Engager

Perfect, it works!
Thank you very much and greetings from Germany!!!

0 Karma

scelikok
SplunkTrust
SplunkTrust

Hi @Alexander17,

You can use timechart command like below sample;

| timechart span=1h count as pieces 
If this reply helps you an upvote and "Accept as Solution" is appreciated.
0 Karma

Alexander17
Engager

Hello scelikok,

Dankr for the quick reply! Unfortunately it does not work. The values are displayed per hour so

10:00 = 250 pieces
11:00 = 200 pieces
12:00 = 150 pieces.

But this is how it should be

10:00 = 250 pieces
11:00 = 450 pieces
12:00 = 600 pieces

0 Karma
Get Updates on the Splunk Community!

Index This | Why did the turkey cross the road?

November 2025 Edition  Hayyy Splunk Education Enthusiasts and the Eternally Curious!   We’re back with this ...

Enter the Agentic Era with Splunk AI Assistant for SPL 1.4

  🚀 Your data just got a serious AI upgrade — are you ready? Say hello to the Agentic Era with the ...

Feel the Splunk Love: Real Stories from Real Customers

Hello Splunk Community,    What’s the best part of hearing how our customers use Splunk? Easy: the positive ...