Hi all, question about Visual Builder: Is there a way to apply a filter to have multiple count aggregations in a single series? I want to use a math aggregation after to compute a metric. Why? See below and please tell my how to improve my process!
Background:
I'm using Elastic Search + Kibana for logging in an application. Mostly, logs come in with a message field (something like Process A Started
, Process A Finished Successfully
, Process A Canceled preemptively
). I'm trying to count the success rate of Process A, but ignore preemptive cancels. Note that if Process A fails we don't necessarily get a Process A failed
, because the app might have crashed.
Here's the my plan:
- Count # of messages with
Process A Started
- Count # of messages with
Process A Finished Successfully
- Count # of messages with
Process A Canceled preemptively
(Right now I also have to divide by 3 due to a logging error, but I'll fix that) - Use a math aggregation to subtract cancels from starts, and then divide successful finishes by that number to get
% of non canceled Process As that finished
.
I can't figure out how to do that with Visual Builder or any other visualization. Any help would be appreciated!