regex for site visits

Ye' old general discussion board. Basically, for everything that isn't covered elsewhere. Come here to shoot the breeze, shoot your mouth off, or whatever suits your fancy.
This forum is not for asking programming related questions.

Moderator: General Moderators

Locked
mjseaden
Forum Contributor
Posts: 458
Joined: Wed Mar 17, 2004 5:49 am

regex for site visits

Post 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
User avatar
patrikG
DevNet Master
Posts: 4235
Joined: Thu Aug 15, 2002 5:53 am
Location: Sussex, UK

Post 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.
timvw
DevNet Master
Posts: 4897
Joined: Mon Jan 19, 2004 11:11 pm
Location: Leuven, Belgium

Post by timvw »

btw, define "unique" visit.... http is stateless, and therefore (ignoring connection keep-alive) all requests are unique.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

do not double/cross post again. Locked.

viewtopic.php?t=30404
Locked