Mask Emails in Logs

Mask email addresses in logs in 5 Minutes.

Overview

The Mask node obfuscate sensitive information within log data to help meet data protection and privacy regulations without affecting the utility of logs for monitoring and analysis. By using regex patterns to identify which data to mask and replacing it with asterisks or custom strings, the mask node ensures that logs can be shared or analyzed without exposing sensitive information. For instance, consider a tool with logs that regularly contain user emails. While not as sensitive as passwords or personal identification numbers, user emails still constitute personal information that should be protected to comply with privacy laws like the General Data Protection Regulation (GDPR) in the EU or the California Consumer Privacy Act (CCPA). In this example, a mask node is set up in the observability pipeline to match and obfuscate email addresses in the logs, before the logs are stored or further transmitted.

Prerequisites

To obfuscate data in logs using a mask node you need an Edge Delta account with an agent configuration already created. This is the configuration in which you will create the node.

Create a Mask Node

  1. In the Edge Delta App, click Pipelines, and select Pipelines.
  2. Click the pipeline you want to add the mask node to.
  3. Click Edit Mode.
  4. Click +, expand Transformations and select Mask Processor.
  5. Specify a Name for the node.
  6. Enter a Mask String which will replace any emails.
  7. Enter a pattern in the Pattern field, for example
\b[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Z|a-z]{2,}\b
  1. Click OK
  2. Click Review Changes.
  3. Click Deploy Changes.

Logs passing through the mask node, which contain email addresses will now be obfuscated.