Unix/Linux Go Back    

UNIX for Dummies Questions & Answers This forum is closed for new posts. Please post beginner questions to learn unix and learn linux in this forum UNIX for Beginners Questions & Answers

Apache Server

UNIX for Dummies Questions & Answers

Thread Tools Search this Thread Display Modes
Old Unix and Linux 09-10-2002   -   Original Discussion by ppychu
ppychu's Unix or Linux Image
ppychu ppychu is offline
Registered User
Join Date: Sep 2002
Last Activity: 12 September 2002, 3:10 PM EDT
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Data 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?????

Sponsored Links
Old Unix and Linux 09-10-2002   -   Original Discussion by ppychu
Neo's Unix or Linux Image
Neo Neo is offline Forum Staff  
Join Date: Sep 2000
Last Activity: 13 December 2017, 10:43 PM EST
Location: Asia pacific region
Posts: 14,091
Thanks: 934
Thanked 1,270 Times in 608 Posts
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.
Sponsored Links

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Linux More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Problem with Perl script after moving from a Windows/Apache Server to a UNIX server. BigBobbyB Programming 9 05-02-2012 05:13 PM
Apache Web Server Config Hari_Ganesh Web Programming 0 07-08-2010 06:05 AM
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

All times are GMT -4. The time now is 12:16 AM.