Splunk Search

Multiple sums in one graph

liorfink
Engager

This is a followup question to This.
http://answers.splunk.com/answers/301144/sum-of-new-events-over-time.html

Now further, say I have all these new events, the answer gave me the total for all new events together, which was perfect for that given case.
Now for further analysis, I'd like it to be a line of the total New events, for each Engine.
So with the answer I got this:
alt text

And I would like a different graph of total New events for each Engine, like:
alt text

So to split the results by Engine I got this:

host="MyHost" Status="New" | timechart count by Engine

That gives me a division by Engine, but once again, it shows me single values per day, and not the accumulated total.
I've tried:
host="MyHost" Status="New" | timechart count by Engine | accum count - just adds another value named 'count' with 0

I'm obviously missing something basic in my understanding.
Thanks again in advance!

  • Sorry for my bad editing *
Tags (4)
0 Karma
1 Solution

somesoni2
SplunkTrust
SplunkTrust

Try something like this

host="MyHost" Status="New" | timechart count by Engine | streamstats sum(*) as *

View solution in original post

somesoni2
SplunkTrust
SplunkTrust

Try something like this

host="MyHost" Status="New" | timechart count by Engine | streamstats sum(*) as *

liorfink
Engager

Perfect!
Thank you!

0 Karma
Get Updates on the Splunk Community!

Welcome to the Splunk Community!

(view in My Videos) We're so glad you're here! The Splunk Community is place to connect, learn, give back, and ...

Tech Talk | Elevating Digital Service Excellence: The Synergy of Splunk RUM & APM

Elevating Digital Service Excellence: The Synergy of Real User Monitoring and Application Performance ...

Adoption of RUM and APM at Splunk

    Unleash the power of Splunk Observability   Watch Now In this can't miss Tech Talk! The Splunk Growth ...