Kibana - limit size aggregation

Hello,

When I am doing a sum bucket aggregation, I am facing a problem because I want to sum every bucket, but I have to define size which normally is limited to 10 000. What I can do to sum every bucket?

Thank you,
Francisca

@Bargs what is best to do here?

The max number of buckets allowed can be controlled with a dynamic cluster setting named search.max_buckets. You could increase this limit if you really need to. But the terms agg is not design to return all values of a high cardinality field so you should consider performance implications like memory usage in the cluster, payload size, and response time.