Compare iftop logs using log-analyzer (#6684)

* Compare iftop logs using log-analyzer

* fixes

* fix clippy errors
This commit is contained in:
Pankaj Garg
2019-11-01 14:48:23 -07:00
committed by GitHub
parent 385b4ce959
commit bae83ba2b6
4 changed files with 197 additions and 73 deletions

View File

@ -24,9 +24,9 @@ awk '{ if ($3 ~ "=>") { print $2, $7 } else if ($2 ~ "<=") { print $1, $6 }} ' <
| awk '{ print "{ \"a\": \""$1"\", " "\"b\": \""$3"\", \"a_to_b\": \""$2"\", \"b_to_a\": \""$4"\"}," }' > "$2"
if [ "$#" -ne 3 ]; then
solana-log-analyzer -i "$2"
solana-log-analyzer iftop -f "$2"
else
solana-log-analyzer -i "$2" map-IP --priv "$(hostname -i)" --pub "$3"
solana-log-analyzer iftop -f "$2" map-IP --priv "$(hostname -i)" --pub "$3"
fi
exit 1