Created
August 19, 2019 13:31
-
-
Save selcukusta/4090dba1416f9ccc4e2fb16d8a21524a to your computer and use it in GitHub Desktop.
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
filter { | |
mutate { | |
# Mesaj icerisinde gecen mail adreslerini maskeler. Ornegin; "Giris yapan kullanici: system@domain.com -> Giris yapan kullanici: s***m@domain.com" | |
gsub => [ | |
"Message", "([a-zA-Z0-9_.+-])[a-zA-Z0-9_.+-]+([a-zA-Z0-9_.+-])(@[a-zA-Z0-9-]+\.[a-zA-Z0-9-.]+)", "\1***\2\3" | |
] | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment