LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-07-2013, 07:27 AM   #1
skoda
Member
 
Registered: Jun 2013
Posts: 111

Rep: Reputation: Disabled
Total Number of Hits in Last Hour


Hello,

i am on a vps based on cent os.
i have many cpanel clients hosted on this server.
i want to know the command to see NUMBER OF HITS EACH ACCOUNT/SITE GOT IN THE LAST HOUR.

Please.
 
Old 11-07-2013, 07:39 AM   #2
TenTenths
Senior Member
 
Registered: Aug 2011
Location: Dublin
Distribution: Centos 5 / 6 / 7
Posts: 2,166

Rep: Reputation: 751Reputation: 751Reputation: 751Reputation: 751Reputation: 751Reputation: 751Reputation: 751
http://support.hostgator.com/article...-using-awstats
 
Old 11-07-2013, 08:08 AM   #3
skoda
Member
 
Registered: Jun 2013
Posts: 111

Original Poster
Rep: Reputation: Disabled
Hai TenTenths,

nop, as a server admin, i should be able to view this in the shell rather than visiting each users cpanel.

Thanks.
 
Old 11-07-2013, 11:16 AM   #4
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,275

Rep: Reputation: 370Reputation: 370Reputation: 370Reputation: 370
All web server loga are located in /var/log/httpd (it may be one file per site or one large file, depending on how the server is configured). It's pretty trivial to write a simple bash/python/Perl/whatever script to parse through the logs and report on number of hits, errors, etc. In fact, if you do some Googling, you should be able to find such a script that someone else has written and use it.
 
Old 11-07-2013, 10:52 PM   #5
TenTenths
Senior Member
 
Registered: Aug 2011
Location: Dublin
Distribution: Centos 5 / 6 / 7
Posts: 2,166

Rep: Reputation: 751Reputation: 751Reputation: 751Reputation: 751Reputation: 751Reputation: 751Reputation: 751
Quote:
Originally Posted by btmiller View Post
It's pretty trivial to write a simple bash/python/Perl/whatever script to parse through the logs and report on number of hits, errors, etc. [] you should be able to find such a script that someone else has written and use it.
Similarly my suggestion would be to create an instance of awstats to pull all the log files together and analyse them in a similar manner to cpanel.
 
Old 11-07-2013, 11:21 PM   #6
bkcreddy17
Member
 
Registered: Feb 2008
Location: India-Hyderabad
Distribution: RHEL and Fedora
Posts: 171

Rep: Reputation: 15
Yes. It is better to use awstats or webalizer or some sort of tool.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How can i find the total number of hits receiving by apache server per day jsaravana87 Linux - Server 1 07-05-2012 11:07 AM
LXer: What's in a Number? Linux Hits the Big 3.0 LXer Syndicated Linux News 0 06-09-2011 09:30 PM
convert total no of seconds in the format hour minutes and seconds suchi_s Programming 15 03-15-2011 12:34 PM
Get number of hits thisObject Linux - Software 3 05-11-2006 10:57 AM
List total number of directories paraiso Linux - Newbie 5 04-18-2005 05:04 AM


All times are GMT -5. The time now is 02:49 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration