The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

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 10:38 AM
Apache Virtual Server Help ratnamg Linux 0 02-05-2008 08:44 PM
moving apache from 1 server to another marinob007 UNIX for Dummies Questions & Answers 2 12-20-2007 01:59 PM
Apache Web Server anent UNIX for Dummies Questions & Answers 9 11-16-2001 05:11 PM
Apache Server cfir UNIX for Dummies Questions & Answers 4 07-04-2001 09:17 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 09-10-2002
ppychu ppychu is offline
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
  #2 (permalink)  
Old 09-10-2002
Neo's Avatar
Neo Neo is offline Forum Staff  
Administrator
  
 

Join Date: Sep 2000
Location: Asia Pacific
Posts: 6,709
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.
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 03:02 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0