Overview

A pipeline aggregation in Elasticsearch is a powerful feature that allows us to perform complex calculations and aggregations on the results of other aggregations. It’s a way to build multi-step aggregations that work on the intermediate results of previous aggregations. This can be especially useful when we need to perform calculations requiring aggregated data aggregations.

The basic idea of a pipeline aggregation is to take the output of one or more bucket or metrics aggregations and then perform additional calculations or aggregations on that output. This enables us to create advanced analytical queries that go beyond simple aggregations.

Here are the two types of pipeline aggregation:

  • Parent aggregation

  • Slibing aggregation

Get hands-on with 1200+ tech skills courses.