From 468369d062e8ba3b6c1b0386e00c5917f1fd54ad Mon Sep 17 00:00:00 2001 From: Felix Richter Date: Wed, 11 May 2011 12:38:40 +0200 Subject: 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 --- .scripts/sanitize.sh | 2 ++ 1 file changed, 2 insertions(+) create mode 100755 .scripts/sanitize.sh (limited to '.scripts/sanitize.sh') 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 -- cgit v1.2.3