summaryrefslogtreecommitdiffstats
path: root/retiolum/hosts/.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
commit50c19eb1d5aa815af6d67bb58ff90fcc1e548036 (patch)
tree5f97379f69b648ca56b83fcddd4803f134ddd915 /retiolum/hosts/.scripts/sanitize.sh
parent484dd59bbf95e891c1f83304da2adf1f19cc3244 (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 'retiolum/hosts/.scripts/sanitize.sh')
-rwxr-xr-xretiolum/hosts/.scripts/sanitize.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/retiolum/hosts/.scripts/sanitize.sh b/retiolum/hosts/.scripts/sanitize.sh
new file mode 100755
index 00000000..92a7b6ee
--- /dev/null
+++ b/retiolum/hosts/.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