login community faq

What would be an easy way to receive an email if there are more than 100 unique visitors during the last 15 minutes?

asked Sep 02 '11 at 04:43

ampelmann's gravatar image

ampelmann
25110


Hi,

I'm pretty sure the only way to do this would be to create a script (python, ruby, shell, perl, whatever you are comfortable with) that would parse/tail your ~/logs/frontend/access_site_name.log file looking for the referrer IP address, storing it (once for the first value), discarding the same IP value recurring, then use sendmail when the unique value gets to 100.

I don't have any scripts like this, so you'll need to make your own, since I've never needed something like this but it could probably be whipped up fairly quickly.

answered Sep 02 '11 at 12:53

klynton's gravatar image

klynton ♦♦
148128

edited Sep 02 '11 at 12:54

I was hoping for a existing solution, but thanks.

(Sep 06 '11 at 02:59) ampelmann ampelmann's gravatar image
Your answer
If you have an answer to the above question, then use the form below. Otherwise, use the appropriate 'add new comment' button above to post your feedback.
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Tags:

×149
×16

Asked: Sep 02 '11 at 04:43

Seen: 648 times

Last updated: Sep 06 '11 at 02:59

Plans & prices    Sign up    Why WebFaction?    Contact us    Affiliate program    Support    Legal    Jobs    Blog    Control panel login
Powered by OSQA
© Copyright 2003-2012 Swarma Limited - WebFaction is a service of Swarma Limited