Page 1 of 1

regex for site visits

Posted: Thu Feb 10, 2005 1:35 pm
by mjseaden
Hello,

Can anyone tell me a regex that will read an apache log file and report how many unique visits within a given day/month?

I know that sounds like a lot, but even a starting point or external resource would be greatly appreciated (I seem to be having troubles with Google).

Many thanks

Mark

Posted: Thu Feb 10, 2005 2:49 pm
by patrikG
Have you had a look at AWStats ( http://awstats.sourceforge.net/ )? Not sure if they use regex to parse the logs, but it's worth investigating.

As a matter of fact, any OS log analyzer could and should have that - maybe worth to have a look at Webalizer as well ( http://www.mrunix.net/webalizer/ ). I'm sure there are many others.

Posted: Thu Feb 10, 2005 4:43 pm
by timvw
btw, define "unique" visit.... http is stateless, and therefore (ignoring connection keep-alive) all requests are unique.

Posted: Thu Feb 10, 2005 5:30 pm
by feyd
do not double/cross post again. Locked.

viewtopic.php?t=30404