Function: Sum

Overview

Function to Sum Values

Description

This function calculates the sum of the values of the specified field in all events. If the field is not included in the event, its value is 0. The result of the function is an event containing the name of the field for which the amount was calculated, and the value.
This function does not route the original event, so it must be placed in a separate function chain

Function Schema

Examples

We need to find the total traffic volume as the sum of traffic in each event. Set Field Name = 'traffic' in the function parameters. The result will contain the 'traffic' field and the amount.