errorslot.awk
Generated on Tue Dec 05 17:39:06 Eastern Standard Time 2006 from errorslot.awk
# Program : ERRORSLOT.AWK
# Purpose : Parse through GroupWise log files for errors, organize by timeslot
# Author : Bob Jonkman
# Date : 24 October 2005
# Note : Input file format is that produced by PARSEPOA:
# "Agent, Datetime, ThreadNo, Message"
BEGIN { FS = "," ;
OFS = "," ;
BACKSLASH = "\\" ;
print("Agent,Timeslot,Errorcode") ;
}
($0 == "=====") { getline ; # Skip over "====="
getline ; # Skip over "Unique"
}
FNR != 1 { split($2,tf,":") ;
timeslot = tf[1] ":00:00" ;
errorcode = substr($0,index($0,"[")+1,4) ;
# print("##### DEBUG #####",$0) ;
print($1, timeslot, errorcode) ;
}
# EOF: ERRORSLOT.AWK
1 files processed.