diff options
author | Ben Laurie <ben@apache.org> | 2004-01-01 16:39:30 +0100 |
---|---|---|
committer | Ben Laurie <ben@apache.org> | 2004-01-01 16:39:30 +0100 |
commit | c154a09f3077fe952e6f47afbc2e924e4277aca8 (patch) | |
tree | 5dd588594e30e639b55d6b118f7a09ec2eedb632 /support/check_forensic | |
parent | update tranformation (diff) | |
download | apache2-c154a09f3077fe952e6f47afbc2e924e4277aca8.tar.xz apache2-c154a09f3077fe952e6f47afbc2e924e4277aca8.zip |
Add forensic logging.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@102141 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'support/check_forensic')
-rwxr-xr-x | support/check_forensic | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/support/check_forensic b/support/check_forensic new file mode 100755 index 0000000000..d1512f34cf --- /dev/null +++ b/support/check_forensic @@ -0,0 +1,14 @@ +#!/bin/sh + +# check_forensic <forensic log file> + +# check the forensic log for requests that did not complete +# output the request log for each one + +F=$1 + +cut -f 1 -d '|' $F > /tmp/fc-all.$$ +grep + < /tmp/fc-all.$$ | cut -c2- | sort > /tmp/fc-in.$$ +grep -- - < /tmp/fc-all.$$ | cut -c2- | sort > /tmp/fc-out.$$ +join -v 1 /tmp/fc-in.$$ /tmp/fc-out.$$ | xargs -I xx egrep "^\\+xx" $F +rm /tmp/fc-all.$$ /tmp/fc-in.$$ /tmp/fc-out.$$ |