urlEncode() Query Function

URL-encodes the contents of a string field.

Parameters

Name

Type

Required

Default

Description

type

string

No

description

field

string

Yes

The name of the input field with the value to url-encode.

as

string

No

_urlencode

Name of output field.

The implied parameter is field.

Examples

With an event with a field Bar=https://www.humio.com, you get https%3A%2F%2Fwww.humio.com in the _urlencode field

humio
urlEncode("Bar")

With an event with a field Bar=https://www.humio.com, you get https%3A%2F%2Fwww.humio.com in the Foo field

humio
Foo:=urlEncode("Bar")

With an event with a field Bar=https://www.humio.com, you get https%3A%2F%2Fwww.humio.com in the Foo field

humio
urlEncode("Bar", as="Foo")