WebFaction
Community site: login 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 02 Sep '11, 04:43

ampelmann
3532024
accept rate: 0%


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.

permanent link

answered 02 Sep '11, 12:53

klynton
1.6k1210
accept rate: 41%

edited 02 Sep '11, 12:54

I was hoping for a existing solution, but thanks.

(06 Sep '11, 02:59) ampelmann
Your answer
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

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×226
×28

question asked: 02 Sep '11, 04:43

question was seen: 2,828 times

last updated: 06 Sep '11, 02:59

                              
WEBFACTION
REACH US
SUPPORT
LEGAL
© COPYRIGHT 2003-2020 SWARMA LIMITED - WEBFACTION IS A SERVICE OF SWARMA LIMITED
REGISTERED IN ENGLAND AND WALES 5729350 - VAT REGISTRATION NUMBER 877397162
5TH FLOOR, THE OLD VINYL FACTORY, HAYES, UB3 1HA, UNITED KINGDOM