Groovy scripting to Add custom values to an aggregate result, Eg - Unique count of "field1" + 1

How to add custom values to an aggregated result.

Eg - Unique count of "field1" + 1

Is this possible in Kibana?


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.:





This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.