mirror of
https://github.com/apache/httpd.git
synced 2025-06-06 09:01:00 +03:00
PR: Obtained from: Submitted by: Reviewed by: git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@102349 13f79535-47bb-0310-9956-ffa450edef68
16 lines
466 B
Bash
Executable File
16 lines
466 B
Bash
Executable File
#!/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.$$
|
|
# use -i instead of -I for GNU xargs
|
|
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.$$
|