The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
How to fix a fault with apache in SUN server vamshikrishnab SUN Solaris 30 05-22-2008 06:38 AM
Apache Virtual Server Help ratnamg Linux 0 02-05-2008 04:44 PM
moving apache from 1 server to another marinob007 UNIX for Dummies Questions & Answers 2 12-20-2007 09:59 AM
Apache Web Server anent UNIX for Dummies Questions & Answers 9 11-16-2001 01:11 PM
Apache Server cfir UNIX for Dummies Questions & Answers 4 07-04-2001 05:17 AM

Closed Thread
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 09-10-2002
Registered User
 

Join Date: Sep 2002
Posts: 1
Unhappy Apache Server

I have a question concerning the log file from an apache web server.

How can I :
a) roughly estimate the number of requests processed per
second by the web server.
b) tally the top ten hosts who send most of the requests to
the web server for the last 30 minutes.

Could any web server admin gurus lend a helping hand?????

Thanks!
ppychu
Forum Sponsor
  #2 (permalink)  
Old 09-10-2002
Neo's Avatar
Neo Neo is offline
Administrator
 

Join Date: Sep 2000
Location: Asia Pacific
Posts: 4,189
You can simple do a head -1 and a tail -1 on the logfile, filter out the timestamp, and build an algorithm that calculates the number of seconds between the first and last entry. You would also count the number of entries using something line cat filename | wc -l to give you the number of lines.

Similar idea for 'the last thirty minutes, top user' but this requires considerable more processing, including building a table, pattern matching, etc.
Google UNIX.COM
Closed Thread

Thread Tools
Display Modes




All times are GMT -7. The time now is 03:15 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0