Take the 2-minute tour ×
Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

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.

Thanks.

share|improve this question
add comment

1 Answer

up vote 0 down vote accepted

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

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

share|improve this answer
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 '13 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. –  bybe Feb 12 '13 at 19:41
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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