Auto date histogram aggregation

Auto date histogram aggregation #

A multi-bucket aggregation like date_histogram, but you choose the NUMBER of buckets and the engine picks the interval that best fits.

Example #

Ask for three buckets over the sales timeline:

The engine returns roughly monthly buckets with an interval hint on the result.

Parameters for auto_date_histogram #

  • field
    (Required, string) Date field you wish to aggregate.
  • buckets
    (Optional, integer, default: 10) Target number of buckets.
  • minimum_interval
    (Optional, string) Smallest interval the picker may choose.
Calendar September 26, 2026
Edit Edit this page