Skip to main content

urlencode Search Operator

The urlencode operator encodes the URL into an ASCII character set. This is the standard format in which URLs can be sent over the internet.

For example, if your URL looks like this:

It will be encoded to:


urlencode(<url_field>) [as <field>]
urlencode("<url string>") as <field>


To encode a URL in your PagerDuty logs, you can run this query:

| kv "html_url" as url
| urlencode(url) as url

The query returns the field url encoded:


Privacy Statement
Terms of Use

Copyright © 2024 by Sumo Logic, Inc.