summaryrefslogtreecommitdiffstats
path: root/.scripts/sanitize.sh
diff options
context:
space:
mode:
authorFelix Richter <Felix.Richter@syntax-fehler.de>2011-05-11 12:38:40 +0200
committerFelix Richter <Felix.Richter@syntax-fehler.de>2011-05-11 12:38:40 +0200
commit468369d062e8ba3b6c1b0386e00c5917f1fd54ad (patch)
tree6a82be7dbf7980b6335c2b245788bf609121494e /.scripts/sanitize.sh
parentca74a85f1d031377f9269e7a541a6c8f1cbefb3a (diff)
added tinc syslog parser and graph generator
parse.py: parses syslog input given via stdin, writes graphviz graph to stdout sanitize.sh:helper script which prepares syslog for the parse script,pipes output of parse.sh into graphviz
Diffstat (limited to '.scripts/sanitize.sh')
-rwxr-xr-x.scripts/sanitize.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/.scripts/sanitize.sh b/.scripts/sanitize.sh
new file mode 100755
index 00000000..92a7b6ee
--- /dev/null
+++ b/.scripts/sanitize.sh
@@ -0,0 +1,2 @@
+sudo sed -n '/tinc.retiolum/{s/.*tinc.retiolum\[[0-9]*\]: //gp}' /var/log/everything.log | ./parse.py | tee here.dot | dot | gvcolor | dot -Tpng -O
+mirage noname.dot.png