
September 6th, 2011, 07:11 PM
|
|
|
|
asp/vbscript doesn't have fancy file handling or file reading functions. And if the log files are compressed you'll have another problem. Basically you'll need to open the log file for reading, most likely using the filesystem object, then read the file from the top looking for your matching strings and doing whatever when you get a matching hit in a log file line.
Log files tend to be very large, I doubt you'll be happy with the performance of your page. And depending on how your host is set up, you may not be able to access the log file from your asp code at all.
If you don't need real time maybe download the log files and use a different software technology to scan and extract the data you need. The only reason you'd want to use asp to process the log file is that it's your only choice.
__________________
======
Doug G
======
It is a truism of American politics that no man who can win an election deserves to. --Trevanian, from the novel Shibumi
|