Edge Delta Mask Node

Mask values in logs using the Edge Delta Mask Node.


The Mask node obfuscates sensitive data in logs by replacing them with a specified set of characters, such as a series of asterisks or a custom string. Masking is important for compliance with various data protection regulations and for privacy concerns. Sensitive data is identified using a regex pattern.

Note the mask node cannot process patterns with alternative regexes such as IPv4 and IPv6. Separate mask nodes in series are required to mask each regex pattern.

For a detailed walkthrough, see the Mask Emails in Logs page.


In this example, a string containing an IP address is identified and the IPv4 address is masked with the word “REDACTED”.

  - name: mask
    type: mask
    pattern: Received request from (\b(\d{1,3}\.){3}\d{1,3}\b)
    mask: REDACTED

Input Log

  "timestamp": "2023-04-05T14:22:45Z",
  "node_id": "node6",
  "log_level": "INFO",
  "message": "Received request from",
  "source_ip": "",
  "event": "request_received",
  "service": "api-service",
  "protocol": "HTTP",
  "method": "GET",
  "endpoint": "/api/data",
  "status_code": 200

Output Log

  "message":"Received request from REDACTED",

Required Parameters


A descriptive name for the node. This is the name that will appear in Visual Pipelines and you can reference this node in the yaml using the name. It must be unique across all nodes. It is a yaml list element so it begins with a - and a space followed by the string. It is a required parameter for all nodes.

  - name: <node name>
    type: <node type>

type: log_to_pattern

The type parameter specifies the type of node being configured. It is specified as a string from a closed list of node types. It is a required parameter.

  - name: <node name>
    type: <node type>


The pattern parameter is used to identify the values that should be masked. It is specified as a Golang regex pattern string. A pattern is required.

  - name: <node name>
    type: mask
    pattern: <regex pattern>

Optional Parameters


The mask parameter is used to define the characters that should be used to obfuscate the masked data. It is specified as a string and the default is ******. It is optional.

  - name: <node name>
    type: mask
    pattern: <regex pattern>
    mask: <masking characters>

See Also

Mask Emails in Logs