Cross Reference: check_forensic
xref
: /
httpd
/
support
/
check_forensic
Home
History
Annotate
Line#
Navigate
Download
Search
only in
./
check_forensic revision 46ef178b8f55b794c65491b370974833ce9e621b
#!/
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
.$$