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
Revered Legend

Try something like this

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

View solution in original post

somesoni2
Revered Legend

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!

Stay Connected: Your Guide to May Tech Talks, Office Hours, and Webinars!

Take a look below to explore our upcoming Community Office Hours, Tech Talks, and Webinars this month. This ...

They're back! Join the SplunkTrust and MVP at .conf24

With our highly anticipated annual conference, .conf, comes the fez-wearers you can trust! The SplunkTrust, as ...

Enterprise Security Content Update (ESCU) | New Releases

Last month, the Splunk Threat Research Team had two releases of new security content via the Enterprise ...