Videos

  • Add Videos
  • View All

Latest Activity

Profile IconWilliam S and Please... Dee Esssss :-) joined splunkninja
1 hour ago
Amine Recoba is now a member of splunkninja
yesterday
Michael Wilde replied to Nikita's discussion Count failures and success via transaction
"How are these transactions linked together... by a field called "ID"?  If so.. just build them with the field ID, and then use one of the MV commands to extract a field with success or failure in it.   Paste some samples and…"
Friday
Linus Myrefelt updated their profile
May 22
Marie updated their profile
May 21
Marie is now a member of splunkninja
May 21
Profile IconJitter and matthew arguin joined splunkninja
May 18
Profile IconMatthew Carter and Nikita joined splunkninja
May 17
I need to sum fields by other fields in the same event.

Here is an example event:
_time                                somefieldname   somefieldvalue
6/26/10 3:09:23.000 AM     A                       1
                                        A                       1
                                        B                       2
                                        B                       2

How could I sum the values in somefieldvalue by somefieldname, then graph the sum.  IE '| timechart span=1m avg(somefieldvalue) by somefield.'

For this event on the timechart A would equal to 2 and B would equal to 4.

I'm at a loss.  Any help is appreciated.

Thanks,
Joe

Views: 80

Reply to This

Replies to This Discussion

Have you considered using " | makemv" to turn that event in to a multi-value field, so you end up with a=1 a=2 b=2 b=2 and then do an | eval a = a+a | eval b = b + b
Thanks for the reply.

I ended up splitting the event into multiple events using split. Then I could use stats and timechart as expected.

Thanks,
Joe

RSS

© 2012   Created by Michael Wilde.

Badges  |  Report an Issue  |  Terms of Service