Aggregation
Elasticsearch Plugin – Aggregation Action
Summary (SEO Meta Description):
The Aggregation Action of the Elasticsearch Plugin performs advanced data aggregation on an Elasticsearch index.
It enables workflows to calculate metrics such as counts, averages, sums, and more.
Overview
The Aggregation Action allows your workflow to aggregate data stored in an Elasticsearch index.
This is ideal for creating analytics dashboards, generating summary reports, or computing key performance indicators.
Typical Use Cases:
- Calculate the average, sum, minimum, or maximum of a field
- Count the number of documents that match specific criteria
- Build real-time dashboards with aggregated metrics
- Filter and group data for analytics or business insights
⚙️ Configuration
| Field | Description | Type / Options |
|---|---|---|
| Label | Custom name for the action | String |
| Select connection | Choose or create a secure Elasticsearch connection | Connection |
| Index | Name of the Elasticsearch index to query | String |
| Aggregation Field Name | Field to perform aggregation on | String |
| Aggregation Field Type | Type of aggregation: AGGREGATION_TYPE_UNSPECIFIED, AVG, SUM, MIN, MAX, COUNT | Dropdown |
| Filters | Optional filters to narrow aggregation results | Toggle Section |
| Filter Field | Name of the field to filter on | String |
| Filter Type | Filter type: UNSPECIFIED, TERM, RANGE | Dropdown |
| Schema | Optional schema to validate output | Schema |
FAQ
Q: What type of metrics can I calculate?
A: You can calculate average, sum, min, max, and count for any numeric field.
Q: Can I filter data before aggregation?
A: Yes. Use filters to apply conditions before running the aggregation.
Q: Is schema selection required?
A: No. It’s optional but recommended for validating and structuring the output.
Q: What is AGGREGATION_TYPE_UNSPECIFIED?
A: This is a default option when no specific aggregation type is selected.
Choose the appropriate type for meaningful results.
Keywords: WeHub Elasticsearch Plugin, Aggregation Action, Elasticsearch Metrics, AVG SUM MIN MAX COUNT, Workflow Analytics