Skip to main content

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

FieldDescriptionType / Options
LabelCustom name for the actionString
Select connectionChoose or create a secure Elasticsearch connectionConnection
IndexName of the Elasticsearch index to queryString
Aggregation Field NameField to perform aggregation onString
Aggregation Field TypeType of aggregation: AGGREGATION_TYPE_UNSPECIFIED, AVG, SUM, MIN, MAX, COUNTDropdown
FiltersOptional filters to narrow aggregation resultsToggle Section
Filter FieldName of the field to filter onString
Filter TypeFilter type: UNSPECIFIED, TERM, RANGEDropdown
SchemaOptional schema to validate outputSchema

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