Document toolboxDocument toolbox

URL decode (urldecode)

Description

Decodes the given URL, replacing each escape sequence with the character that it represents. An escape sequence is formed by a % followed by the hex value of a character.

How does it work in the search window?

Select Create field in the search window toolbar, then select the URL decode operation. You need to specify one argument:

Argument

Data type

Argument

Data type

URL mandatory

string

The data type of the values in the new field is string.

Example

In the siem.logtrust.web.actvity table, we want to decode the URLs in our URL field. To do it, click Create field and select the URL decode operation. The arguments needed are:

  • URL - URL field

10_url decode.png

Click Create field.

How does it work in LINQ?

Use the operator select... as...  and add the operation syntax to create the new field. This is the syntax for the URL decode operation:

  • urldecode(uri_string)

Example

You can copy the following LINQ script and try the above example on the siem.logtrust.web.activity table. 

from siem.logtrust.web.activity select urldecode(url) as URL_decode

How does it work in LINQ?

Use the operator select... as...  and add the operation syntax to create the new field. This is the syntax for the URL decode operation:

  • urldecode(uri_string)