avg() Query Function

Calculates the average for a field over a set of events. The result is returned in a field named _avg.

Parameters

Name

Type

Required

Default

Description

field

string

Yes

Field to extract a number from and calculate average over.

as

string

No

_avg

Name of output field.

The implied parameter is field.

Examples

Find the average bytes sent in HTTP responses.

humio
avg(field=bytes_sent)