Docs
Search…
Mask
The mask function masks, encrypt and redact fields inside log event. This function is useful if you wan to redact or encrypt some sensitive information inside your logs.

Usage

There are three types of mask functions provided:
    MD5
    REDACTED
    sha1
    sha256
    repeat

Example

Redact user id

Suppose we have following log event:
Input
1
{
2
"msg": "mask example",
3
"user_id": 12345
4
}
Copied!
To redact user_id field, fill out function form
Output event will be following, with value of user_id being replaced by "REDACTED"
Output
1
{
2
"msg": "mask example",
3
"user_id": "REDACTED"
4
}
Copied!
Last modified 1yr ago