On Fri, 7 Apr 2000, Wallace Nicoll wrote:
>
> I've not used Analog. But I did write a PERL script that combines with a UNIX
> script to do this sort of stuff.
>
> Pull out the IP and date information from the log - if you're doing it on a
> daily basis all you need is the time stamp - I restricted mine to the
> hours:mins and didn't bother with the seconds. (On UNIX) Use awk to get that.
> Then sort the file by timestamp and remove duplicates with uniq. Then run it
> through a simple PERL script to count the number of lines for each minute.
> That would give an indication of the number of concurrent users.
>
> Modify the above if you want to analyse concurrent requests.
>
It occurs to me that you can do this properly if you log the time-taken
(Apache %T, but with finer resolution). Then you know the start and end
time of each request, so you know the number of concurrent requests at all
times.
Of course, what a specific request corresponds to in terms of load on your
server is not straightforward.
--
Stephen Turner http://www.statslab.cam.ac.uk/~sret1/
Statistical Laboratory, 16 Mill Lane, Cambridge CB2 1SB, England
"8th March 2000. National No Smoking Day. Ash Wednesday." (On a calendar)
------------------------------------------------------------------------
This is the analog-help mailing list. To unsubscribe from this
mailing list, send mail to [EMAIL PROTECTED]
with "unsubscribe" in the main BODY OF THE MESSAGE.
List archived at http://www.mail-archive.com/[email protected]/
------------------------------------------------------------------------