I want to know on a analysis layer from apache logs which can tell me if the # of concurrent logins (using same username) has exceeded e.g more then 4.

Is such a thing can be automated or it requires manual analysis.


1 Answer 1


Apache2 Logs Does not Support Concurrent Users

AS the title suggests indeed the default logging system that Apache2 uses does not support logging of session times also referred as concurrent users. It logs the accessing of files and errors. You will need to install some kind of system that monitors and logs real time events.

Limited Monitoring of Logs (ApacheTop)

You can monitor basis usage of the apache2 logs but again this will not show the detail I think your looking for. To install Apachetop simply run:

apg-get install apachetop

Example above is displayed for Debian and Ubuntu, change the command to your preferred Linux if required to do so.

Then run "apachetop" to view some information live, but again it's not that useful.

Additionally to take a glimpse on this working take a look at it monitoring my design blog:

Web Design Blog Usage http://www.bybe.net/downloads/web-design-blog-usage.jpg

As you can see it doesn't provide much information.

Apache2 Mod Status

While apache2 does not log concurrent users it is possible by installing a mod_status application which setups a monitoring page which details this information. You can install this by doing:

a2enmod status

For further information regarding the install and usage of a2enmod status I suggest you check out Enabling and using Apache's mod_status on Ubuntu

Real-time Monitoring Via JavaScript's

There are many online real time web monitoring services online that you can use taking the headache away of installing your own setup, this is by far the easiest method to install and often provides more information about where they came from, what they clicked and you can view it all in read time. I suggest you take a look some of these:

  1. Statcounter
  2. Clicky
  3. Web-Stat

Real-time Monitoring Via JavaScript's in House

If your looking to host something all internally rather than using control panels on other sites using JavaScript's then you can opt to use a PHP/MYSQL/JavaScript Solution in house, there are many providers and a quick good search on real time monitoring apache2 will reveal some of those.

I recommend TraceWatch

  • 1
    Thanks for such informative answer. I wanna know if the same limitation applies in case of IIS and what if I'm able to find just single instance of user-logged in apache logs (and then record) incrementing this pattern with similar patters i seen on the way. Does it make sense a parser perhaps.
    – asadz
    Feb 12, 2013 at 16:12
  • 1
    No ISS does not contain this feature, it does however log concurrent per hour so you least know how many people but again its not detailed. If you want detail then you need to install something, please note your original question was on Apache2. Feb 12, 2013 at 19:41

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.