length() Query Function

Returns the number of characters in a string field.

Parameters

Name

Type

Required

Default

Description

field

string

Yes

The name of the input field to length.

as

string

No

_length

Name of output field.

The implied parameter is field.

Examples

The number of characters in the @rawstring field

humio
length(@rawstring)

The number of characters in the @rawstring field, putting it in the field rawLength

humio
length(@rawstring, as="rawLength")