Splunk Search

Sum of new events over time

liorfink
Engager

Hi all!
I'm new to Splunk and I'm having trouble making my search correct.
I've tried searching but found no case exactly like mine.

the problem:
I have a log with many 'Events', each event has a status: New/Old.
Old means it has been dealt with.
I would like to make a line-chart that will show the total number of new events over time.
My chart:
alt text

The way the chart should look:
alt text

This is what I've tried so far:
host="MyHost" Status="New" | timechart count(Status)
... | timechart sum(Status)
... | timechart sum(count(Status))

Any help will be appreciated!
Thanks!

Tags (2)
0 Karma
1 Solution

martin_mueller
SplunkTrust
SplunkTrust

This should do what you need:

host="MyHost" Status="New" | timechart count | accum count

That will turn the count per timeslot into a running total.

View solution in original post

martin_mueller
SplunkTrust
SplunkTrust

This should do what you need:

host="MyHost" Status="New" | timechart count | accum count

That will turn the count per timeslot into a running total.

liorfink
Engager

Thank you!
That worked!

0 Karma
Get Updates on the Splunk Community!

What's new in Splunk Cloud Platform 9.1.2312?

Hi Splunky people! We are excited to share the newest updates in Splunk Cloud Platform 9.1.2312! Analysts can ...

What’s New in Splunk Security Essentials 3.8.0?

Splunk Security Essentials (SSE) is an app that can amplify the power of your existing Splunk Cloud Platform, ...

Let’s Get You Certified – Vegas-Style at .conf24

Are you ready to level up your Splunk game? Then, let’s get you certified live at .conf24 – our annual user ...