Aengus, thanks for the batch/cmd file code.
That'll definitely help compared to the searching
I was doing.
I'm definitely impressed with the responses so far from
this list... though I should expect that from an analog
crew. :-)
thanks,
jeff
Aengus wrote:
[snip]
Unfortunately, Analog does not have a PROCTIMEINCLUDE command to only
include log entries that took longer than a specified time. So
you'll have to extract log entries with long processing times to do
the kind of analysis you want.
I suspect this is a case for grep or hand-looking through the
logfiles (ug), but thought it might be worth a check first.
On Unix, I'm sure someone could give you a grep command that would do
it quickly. You can do it fairly easily in an Windows command prompt
too, but it's a little bit messy.
If the processing time field in your logfile is (for example) the
12th field in the log, you can extract all logfile entries where the
processing time is greater than 5 seconds (which I think is recorded
as 5000 milliseconds in IIS) with this command (all on a single
line): FOR /F "tokens=1,2,3,4,5,6,7,8,9,10,11,12*" %a in (ABC.log) do
if %l GTR 5000 @echo %a %b %c %d %e %f %g %h %i %j %k %l %m >>
LONG.log
If it's the 8th field, then you can trim back the list of letters and
use "if %h GTR" etc. The * at the end of the list of tokens catches
the rest of the line after the field you want to test. And you should
probably get the log headers (the lines starting with #) into
LONG.log first.
It's not lightning fast, but I can crunch about a quarter of a
million log entries per minute with that command, so it may be good
enough, depending on how big your logfiles are.
Aengus
--
Jeff Wilkinson
[EMAIL PROTECTED]
+------------------------------------------------------------------------
| TO UNSUBSCRIBE from this list:
| http://lists.meer.net/mailman/listinfo/analog-help
|
| Analog Documentation: http://analog.cx/docs/Readme.html
| List archives: http://www.analog.cx/docs/mailing.html#listarchives
| Usenet version: news://news.gmane.org/gmane.comp.web.analog.general
+------------------------------------------------------------------------