How to add custom values to an aggregated result.
Eg - Unique count of "field1" + 1
Is this possible in Kibana?
How to add custom values to an aggregated result.
Eg - Unique count of "field1" + 1
Is this possible in Kibana?
Hi,
Groovy as a scripting language is not recommended to use anymore and disabled by default.
Also scripted fields in Kibana only offer you the possibility to add fields to single documents, but there is currently no way to change the outcome of the aggregation.
If you just want to offset in visualization, maybe you should give Timelion a look. It has the ability to do math with constants (or even between time series), e.g.:
.es(metric=avg:field1).plus(1)
or
.es(metric=avg:field1).plus(.es(metric=avg:field2))
Cheers,
Tim
This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
© 2020. All Rights Reserved - Elasticsearch
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.