Serial_diff

Serial diff aggregation

/ Serial_diff, / Aggregation

Serial diff aggregation #

A parent pipeline aggregation computing the difference between each bucket’s metric and the bucket lag positions back — a differencing transform that turns a trending or seasonal series into its own period-over-period change.

"wowl": { "serial_diff": { "buckets_path": "revenue", "lag": 2 } }

How it works #

serial_diff is declared inside the multi-bucket aggregation it decorates, next to the metric it consumes. After the buckets are built, the engine walks them in order and attaches current − value_lag_buckets_back to each bucket under the pipeline’s own name:

...