3 # check_forensic <forensic log file>
5 # check the forensic log for requests that did not complete
6 # output the request log for each one
10 cut -f 1 -d '|' $F > /tmp/fc-all.$$
11 grep + < /tmp/fc-all.$$ | cut -c2- | sort > /tmp/fc-in.$$
12 grep -- - < /tmp/fc-all.$$ | cut -c2- | sort > /tmp/fc-out.$$
13 # use -i instead of -I for GNU xargs
14 join -v 1 /tmp/fc-in.$$ /tmp/fc-out.$$ | xargs -I xx egrep "^\\+xx" $F
15 rm /tmp/fc-all.$$ /tmp/fc-in.$$ /tmp/fc-out.$$