On This Page

Home / Search/ Language Reference/ Functions/ Scalar Functions/ Cryptographic Functions/decrypt

decrypt

The decrypt function decrypts data with a key managed by a Cribl Stream Worker Group.

For more information on how to set up encryption keys, see the Cribl Stream docs:

Syntax

decrypt(value, workerGroup)

Parameters

NameTypeRequiredDescription
valuestringYesA valid KQL expression, containing data encrypted with a key from the specified workerGroup.
workerGroupstringYesThe name of the Stream Worker Group that has the encryption key.

Returns

Returns the input data, decrypted using the key from the specified Stream Worker Group.

Permissions

You need access to the Stream Worker Group that contains the encryption key.

Examples

Get the results of a past search (with ID 1704236905683.wgocax), and decrypt a specific field (dstport).

dataset="$vt_results" jobId='1704236905683.wgocax'
 | extend dstport = decrypt(dstport, <workerGroup>)