Hi,
First time poster, I'm having difficulty getting the data I want from a Kibana visualisation and I'm hoping for some insight.
I'm using Kibana v7.6.1 and have been running into an issue trying to use a Filter Ratio with a specific index where the ratio always evaluating to zero, and I was wondering if anyone had a similar experience, or had a suggestion for an alternate way to approach what I'm trying to do.
What I want is, to check the which documents in a range are numerically higher than a threshold, and express that as a percentage of all the documents in the range.
I've had success in the past using a TSVB with a Filter Ratio Aggregation. For example, as a metric I'll set it up like this; this is configured through UI but I'll use a code box to describe it.
TSVB: Metric
Aggregation: Filter Ratio
Numerator: maxCPUBusy:>80
Denominator: MaxCPUBusy:*
Metric Aggregation: Count
Using this configuration I'm able to return a percentage of documents that cross that threshold. It works great.
However with one particular index, I've found that the result returned is always 0.
I'm using the exact same configuration that's worked before, but even using a comparison looking for results over zero in the numerator does not return any values.
The only difference here, is that the name of the field has spaces in it. "Batch Rate", where other fields I've used in the past were in camel case.
I know that there's hits available, as if I make a table with two counts of documents, one with a filter applied looking for only documents breaking the threshold I get two different values. But if I use a Filter Ratio to try and put the second count over the first I get 0 each time.
Is it possible to replicate this function using the Math aggregation?
Has anyone encountered an issue where the Filter Ratio returns 0 even though there should be values?
-Seán