URL-encodes the contents of a string field.
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.
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")