Bucket selector aggregation

Bucket selector aggregation #

A parent pipeline aggregation filtering the bucket list itself: a script predicate per bucket — buckets whose script evaluates false are dropped from the response.

Parameters for bucket_selector #

  • buckets_path
    (Required, object) Map of script variable names to sibling metric paths.
  • script
    (Required, string) Keep predicate over params.<name>.
  • gap_policy
    (Optional, string) skip (default) or insert_zeros.
Calendar September 27, 2026
Edit Edit this page