Last active
June 24, 2019 02:51
-
-
Save geekeren/456ea930a69beb76b9f97dfa68987663 to your computer and use it in GitHub Desktop.
Datadog config to mask Email in logs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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