Loading

ES|QL URL_ENCODE function

Embedded
string

The URL to encode.

URL-encodes the input. All characters are percent-encoded except for alphanumerics, ., -, _, and ~. Spaces are encoded as +.

string result
keyword keyword
text keyword
ROW u = "https://example.com/?x=foo bar&y=baz" | EVAL u = URL_ENCODE(u)
		
u:keyword
https%3A%2F%2Fexample.com%2F%3Fx%3Dfoo+bar%26y%3Dbaz