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!

Splunk Observability for AI

Don’t miss out on an exciting Tech Talk on Splunk Observability for AI!Discover how Splunk’s agentic AI ...

Splunk Enterprise Security 8.x: The Essential Upgrade for Threat Detection, ...

Watch On Demand the Tech Talk, and empower your SOC to reach new heights! Duration: 1 hour  Prepare to ...

Splunk Observability as Code: From Zero to Dashboard

For the details on what Self-Service Observability and Observability as Code is, we have some awesome content ...