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