]> granicus.if.org Git - apache/blob - support/check_forensic
describe the recent changes to mod_headers (%%, envclause everywhere)
[apache] / support / check_forensic
1 #!/bin/sh
2
3 # check_forensic <forensic log file>
4
5 # check the forensic log for requests that did not complete
6 # output the request log for each one
7
8 F=$1
9
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.$$