Hi everybody,
I'm kind of new on elastic and I'm trying to apply this filter on my index : cpu > 0.6 x max_daily_cpu. I succeed to create a query to get the max daily CPU :
Can you be more specific about how you intend to use the results where this filter is being applied? Depending on your use case, the answer could range from "this isn't supported" to "there is a simple way to do this".
Firstly, it will be use in Discover to access to every document in my index that matches the filter and then this filter will be apply in some visualizations (for example, the average CPU for each device, the average size of network packet by device...).
Kibana filters can only operate on values that exist in individual documents, so you can't filter based on aggregates. If you had a field on individual documents that represented the average CPU usage, then you could do this. Some users find that the transforms feature of Elasticsearch is able to do this, but you'd have to evaluate it for your use.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.