I want to create a table with an "Error" column which will be populated with the values "YES" or "NO", depending on whether a sum aggregation has the value lower or greater than 0.
My metric looks as such:
The only problem is that I don't want to display the actual sum of errors, but I want to display YES if sum (error) > 0 and "NO" otherwise.
Is there a way to do that in Kibana? Where should I insert this condition?
You can't do this in the Kibana Table visualization because it doesn't support bucket scripts like the one you are interested in doing. Here are your options:
Write an ES SQL query in Kibana Canvas that can display this data
Write a custom query and visualization in Vega
Use a Continuous Transform to index pre-aggregated data, and then you can script against the pre-aggregated data
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.