diff options
-rw-r--r-- | clean-log.sed | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/clean-log.sed b/clean-log.sed new file mode 100644 index 0000000..f1e6e26 --- /dev/null +++ b/clean-log.sed @@ -0,0 +1,18 @@ +# Use this sed script to clean your logs before +# pasting it publicly + +# Usage: +# sed -r -f clean-log.sed LOGFILE + +# Todo: +# - IPs (should be already cleaned by rsyslog) +# - Browser user agents + +# Clean all email addresses +s/((\w|[.])+)@((\w|[.])+)/<EMAIL REDACTED>/g + +# Replace username +s/varac/<USERNAME_REDACTED>/g + +#Replace domain +s/wazokazi.is/<DOMAIN_REDACTED>/g |