Apachetop is a realtime monitoring tool, which fetches the apache log information from the log file and display it as human readable mode. So that we can easily understand the apache realtime statistics.

After installing the apache web server in your linux box install apachetopapache, apache2, web server, http server, httpd server, apache modules, apache2 modules, httpd modules, add apache modules, enable httpd modules, disable apache modules, enable httpd modules, disable httpd modules, http server, web servers, apache web server modules, web server modules, apache modules, modules apache http modules, modules http, httpd modules, modules httpd, troubleshooting apache web server, linux apache web server, apache web server in linux, linux web server apache, apache web server on linux, apache web server for linux, apache web server linux, apache web server 64 bit, apache web server download for linux, download apache web server for linux, apache web server linux download, free apache web server download, free download apache web server, apache web server free download, configuration of apache web server in linux, apache web server configuration in linux, apache web server source code, build apache web server, what is the apache web server, what is apache web server, apache server web, web server apache, is apache a web server, web apache server, apache web server features, apache web server latest version, features of apache web server, apache web server php, apache web server for php, apache web server with php, apache web server support, apache web server book, apache web server manual, test apache web server, apache web server 2.0, setup apache web server, apache web server setup, how to configure apache web server in linux, how to configure apache web server, configure apache web server, setting up apache web server, how apache web server works, apache web server tutorial, set up apache web server, web server apache tutorial, start apache web server linux, configuring apache web server in linux, apache web server install, apache web server administration, free apache web server, apache web server software, apache web server training, apache web server price, apache web server hosting, embedded apache web server, apache web server cost, load balancing in apache web server, load balancing apache web server, apache web server load balancing, testing apache web server, apache web server asp.net, apache web server cluster, learn apache web server, apache web server security, apache web server free download for windows xp, apache web server clustering, apache web server download for windows xp, download apache web server for windows xp, apache web server system requirements, apache web server ssl configuration, apache web server for windows xp, apache web server windows xp, apache web server requirements, apache web server statistics, apache web server books, apache web server download windows, download apache web server for windows, apache web server download for windows, apache web server windows download, apache web server tutorial for windows, apache web server download for windows 7, apache web server download windows 7, download apache web server for windows 7, apache web server for windows, apache web server windows, apache web server video tutorial, windows apache web server, apache tomcat web server download, apache web server windows 7, apache web server for windows 7, about apache web server, apache web server configuration, latest version of apache web server, apache tomcat web server free download, apache web server download, download apache web server, web server apache download, apache web server tutorial linux, apache web server ppt, tomcat apache web server,

For Debian based distros use   :     apt-get update 

For rpm based distros use : yum update

How to install ans use apachetop ?

For Debian based distros use   :     apt-get install apachetop

For rpm based distros use :    yum install apachetop

For various options check out the man page : man apachetop

 apachetop -f /var/log/apache2/access.log

It will displays a result as shown below

You can see the individual number of return codes a given item has generated by pressing ‘n’. This alternates the numbers columns between hits/bytes and return codes for each item.

You may sort this list by any of the first four columns; first press ‘s’ to enter the ‘sort submenu’, and then one of the following

r Sort by REQUESTS
R Sort by REQUESTS/SECOND
b Sort by BYTES
B Sort by BYTES/SECOND

If you are viewing return code breakdown, then you’ll see the following:
2 2xx
3 3xx
4 4xx
5 5xx

Thus you can see where all your Page Not Founds are coming from and so on. Each sort order is individually maintained, so you can sort by 3xx, and Bytes, for example, then freely switch between number modes (using ‘n’) without losing either setting.

Additionally, you can press d during runtime to switch the list of displayed items between URLs, IPs, and REFERRERs. URLs is the default, and simply groups together hits on your site and provides collated stats for each one. IPs, similarly, groups hits from each IP and shows you stats for it. So you can see how much bandwidth is being used by any given IP. REFERRERs is handy if you want to see where your traffic is coming from. The stats here reflect how many pages/kbytes have been served as a result of a particular referrer.

To hold the current screen at any time, press p – statistics will still be generated in the background, but whatever is displayed at the current time is kept onscreen until you press p again.

The asterisk beside the URL/IP/Referrer entry in the table can be used to restrict the display to any entry you’re interested in. Use Up/Down arrow keys to move the asterisk to an entry you’re interested in (you can use ‘p’ to freeze the display to give you more time to do so) and then press Right arrow to enter the display specific for that item.

If the item you expanded is a URL, then IPs and Referrers specific to that URL will be shown; ie, IPs (or hosts) which are visiting that URL, and Referrers which are referring people to that URL.

If the item is an IP/Host, then URLs that IP/Host is visiting will be displayed, along with the referrers that IP is coming from. If the item is a Referrer, then URLs and IPs will be shown which have that Referrer.

You may turn off any of these subcolumns; press ‘t’ to enter the toggle submenu, then

u Toggles URL subdisplay
r Toggles REFERRER subdisplay
h Toggles HOSTS subdisplay

Thus you can only display HOSTS that are visiting a given URL, etc. Use Left arrow to return to the previous display.

If you found any other simple realtime monitoring tool, please let me know through comments

Related articles


Subscribe Our Free Newsletter

Delivered by FeedBurner. We Respect Your Privacy

Tagged with:
 

Leave a Reply