Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 75458 invoked from network); 28 Feb 2011 16:09:06 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 28 Feb 2011 16:09:06 -0000 Received: (qmail 78724 invoked by uid 500); 28 Feb 2011 16:09:03 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 78343 invoked by uid 500); 28 Feb 2011 16:08:59 -0000 Mailing-List: contact users-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Users List" Delivered-To: mailing list users@tomcat.apache.org Received: (qmail 78334 invoked by uid 99); 28 Feb 2011 16:08:58 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 28 Feb 2011 16:08:58 +0000 X-ASF-Spam-Status: No, hits=0.7 required=5.0 tests=RCVD_IN_DNSWL_NONE,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [76.96.62.48] (HELO qmta05.westchester.pa.mail.comcast.net) (76.96.62.48) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 28 Feb 2011 16:08:50 +0000 Received: from omta08.westchester.pa.mail.comcast.net ([76.96.62.12]) by qmta05.westchester.pa.mail.comcast.net with comcast id DU6R1g0040Fqzac55U8WcS; Mon, 28 Feb 2011 16:08:30 +0000 Received: from [192.168.1.201] ([69.143.109.145]) by omta08.westchester.pa.mail.comcast.net with comcast id DU8V1g00e38FjT13UU8VzT; Mon, 28 Feb 2011 16:08:29 +0000 Message-ID: <4D6BC87D.1020703@christopherschultz.net> Date: Mon, 28 Feb 2011 11:08:29 -0500 From: Christopher Schultz User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.13) Gecko/20101207 Thunderbird/3.1.7 MIME-Version: 1.0 To: Tomcat Users List Subject: Re: how to caculate the PV,ip,PU according to the tomcat log References: <4D641245.1000403@christopherschultz.net> In-Reply-To: X-Enigmail-Version: 1.2a1pre Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 To whom it may concern, On 2/24/2011 8:34 AM, maven apache wrote: >> Good question. What are PV, ip, and PU? > > Thanks for your attention and Sorry for my negligence. > > PV: page view, how many people visit a page. > > IP: how many ips visitor the website within one day or one hour... > > PU:Unique Visitor, > > For example: > > visitor A(ip:10.0.0.1) scan the site :http://www.xx.com/index.html > http://www.xx.com/about.html > > Visitor B (ip:10.0.0.2) scan the same two pages > > Then VIsitor A change his/her ip to 10.0.0.3 (but its cookie in her/his > browser is not change) and visitor the two pages again. > > Then from all of the above,the > ips=3 (three distinct ips) > pv=2 (two pages) > PU=2 (just two different person,although three ip. > > Is this clear? > > If not,I can add more. :) No, it makes sense. First, you asked about using the log for stats, and then showed an example SQL query. Are you using a RDBMS-based log? At any rate, what you need is a good set of SQL queries -- you might want to talk to a DBA about how to do these things properly. If you are using a log file, try searching Google for "web server log file analyzer". We use Awfful for basic stats tracking. - -chris -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk1ryH0ACgkQ9CaO5/Lv0PDgfACfUVKTSFfbCSOYY8FNmiUV9pUL CqQAoIoYrq5xonD+G8lOu0ytIK7dIis1 =t8wN -----END PGP SIGNATURE----- --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org