[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [hobbit] Tracking Users -- Ideas
- To: hobbit (at) hswn.dk
- Subject: Re: [hobbit] Tracking Users -- Ideas
- From: "Ralph Mitchell" <ralphmitchell (at) gmail.com>
- Date: Thu, 24 Jan 2008 11:02:57 -0600
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; bh=W3ZGp4rcoHbv8pEJ8h05XFYpK+ZnBisCfIMg499wSTg=; b=uVMOHqoOkoZupvMb6EctQbxamCQQYsXixwyE6vAQZB1UK+imcFdNv6jol11xE7pMkPB5Pj7MOtc00lmVph+WKkf+MyaQqybtvv8MQck2Ks7wQCBZXXYIZvE1YIkU8qyNifUafHE0pzLWhojBd9JIV/Ae2M9tAIG6z9MIKRFTeVc=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=FmrutcHWMV7qRjl4vx8+XqUSnC/nhrlzfU37RYdw4SJ/NRxR4cyhIOZfyGY3IoDt/JOUegdoeQX/jhxDgb6ZewB/9/spWyYKuCK6hcGvbvP++/mMn/kSnpd4KPBEG/YsjosCaTmYIS2h9vqbz4UBi0JTXH7b/ojVQH6USusJPFU=
- References: <01cb01c85ea9$873daff0$7d6a28a8 (at) hhsea.txnet.state.tx.us>
On Jan 24, 2008 10:52 AM, James Wade <jkwade (at) futurefrontiers.com> wrote:
> Hello All,
>
>
>
> I'd like to be able to graph the number of users
>
> connecting to a web-site. I was wondering if any one
>
> had any good ideas or if something had already been
>
> written.
>
>
>
> Basically, I want to track the number of users connecting
>
> to a web-site by looking at the log-file, and I'd like to graph
>
> it.
>
>
>
> The log-file looks like this:
>
>
>
> 192.168.0.22 - user07 [20/Aug/2007:08:49:49 -0500] "GET
> /htdocs/info/wd.html
>
> So, it shows all the web pages the user accesses. What I really want to
> know
>
> is how many users are currently connecting through to the web-site.
>
>
>
> I could cat the log file out every minute, grab the username, do a sort
> unique
>
> based on the IP address and Username, then do a count, and graph it. But
>
> I don't know that it would be very accurate. The logfile rotates every
> 2mb,
>
> so I'd have to do a grep of all the files based on date and time, then do
>
> a sort on IP address and Username.
>
>
>
> I also want to put some checks in, for example, same username with
>
> more than one IP address, reverse lookup of the IP based on location,
>
> ie….our users should only be in the U.S., and not somewhere else.
>
Dunno if/how it could be integrated into Hobbit, but I think Webalizer (
http://www.mrunix.net/webalizer/) does exactly what you're looking for.
Ralph Mitchell