Pipeline Aggregations
Learn about pipeline aggregations and the process of combining and transforming data seamlessly.
We'll cover the following
- Overview
- Sibling aggregation
- Parent aggregations
- Pipeline aggregation syntax
- Example
- Creating data
- Aggregation requests
- Aggregation identifying the product category with the highest cumulative profit
- Aggregation comparing the total sales and profits for each product category
- Aggregation that computes the average sales for each product category, excludes categories with an average below 140, and arranges the results in ascending order based on the average
- Kibana widget
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 1400+ tech skills courses.