# $Id$ # extracts stacktraces in node.logs and collects additional information from origo.log # and from API log if present /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("origo.log\n========="); system("awk 'match($1,\"^[0-9][0-9][0-9][0-9]/[0-9][0-9]/[0-9][0-9]\") && $0 <= \""date"\"' origo.log | tail"); if (match(node_name,"^origo-api")) { sname=substr(node_name,7); print("\n"sname".log"); i=0; while(i