summaryrefslogtreecommitdiff
path: root/support/check_forensic
diff options
context:
space:
mode:
authorBen Laurie <ben@apache.org>2004-01-01 15:39:30 +0000
committerBen Laurie <ben@apache.org>2004-01-01 15:39:30 +0000
commitc154a09f3077fe952e6f47afbc2e924e4277aca8 (patch)
tree5dd588594e30e639b55d6b118f7a09ec2eedb632 /support/check_forensic
parent888e03ea175ea1edd0da4086d85128082fec95f7 (diff)
downloadhttpd-c154a09f3077fe952e6f47afbc2e924e4277aca8.tar.gz
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-xsupport/check_forensic14
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.$$