View a markdown version of this page

Hashing functions - Amazon CloudWatch Logs

Hashing functions

You can use hashing functions in fields and filter commands.

Function

Result type

Description

md5(fieldName: string)

string

Computes the MD5 hash of the string value.

sha256(fieldName: string)

string

Computes the SHA-256 hash of the string value.