urlEncode( ) Query Function

URL-encodes the contents of a string field.

Parameters

Name Type Required Default Description
field string Yes The name of the input field with the value to url-encode.
as string No _urlencode name of output field

field is the unnamed parameter.

Examples

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

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

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

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