New to splunk, so if any more info needs to be provided, please let me know.
I'm trying to get a weighted average, but I cannot seem to get the total number of events.
The search I'm running is below
... | STATS count, median(request_time) by request
The count is equal to the count of the "requests". I would like it to be equal to the count of the total events so I can use it later in the search. I've tried almost everything I can think of and most things about weighted averages on this forum. Any help would be much appreciated.
...|eventstats count as total | stats max(total) as totalEvents count, median(request_time) by request
that would bring back the total events and then the count of events by request. is that what you're looking for?
...|eventstats count as total | stats max(total) as totalEvents count, median(request_time) by request
that would bring back the total events and then the count of events by request. is that what you're looking for?
you are a lifesaver!