# $Id$ # extracts stacktraces in node.logs and collects additional information from aranea.log and nodename.log on the api node /ERROR/||/FATAL/,NF == 0 { print $0; if (match($1,"^[0-9][0-9][0-9][0-9]/[0-9][0-9]/[0-9][0-9]")) { date = $1" "$2; } if (NF==0) { print("aranea.log\n========="); system("awk 'match($1,\"^[0-9][0-9][0-9][0-9]/[0-9][0-9]/[0-9][0-9]\") && $0 <= \""date"\"' aranea.log | tail"); printf("\n\n"); if (match(node_name,"-api")) { sname=substr(node_name,7); print("\n"sname".log"); i=0; while(i