projects
/
scripts.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3db0c13
)
Add log anonymizer sed script
author
varac
<varacanero@zeromail.org>
Tue, 21 Feb 2017 09:49:48 +0000
(10:49 +0100)
committer
varac
<varacanero@zeromail.org>
Tue, 21 Feb 2017 09:49:48 +0000
(10:49 +0100)
clean-log.sed
[new file with mode: 0644]
patch
|
blob
diff --git a/clean-log.sed
b/clean-log.sed
new file mode 100644
(file)
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