Skip to content

Instantly share code, notes, and snippets.

@geekeren
Last active June 24, 2019 02:51
Show Gist options
  • Save geekeren/456ea930a69beb76b9f97dfa68987663 to your computer and use it in GitHub Desktop.
Save geekeren/456ea930a69beb76b9f97dfa68987663 to your computer and use it in GitHub Desktop.
Datadog config to mask Email in logs
logs_enabled: true
logs_config:
processing_rules:
- type: mask_sequences
name: mask_user_email
pattern: "([a-zA-Z0-9_\\-\\.]+)@([a-zA-Z0-9_\\-\\.]+)\\.([a-zA-Z]{2,5})"
replace_placeholder: "<MASKED_EMAIL>"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment