Thanks for the reply Jeremy,

The server is currently setup using all sites as virtual hosts using host headers under one website.  All domains, sites, and accounts share one log.  We jsut finished writing our own in house parser that splits the logs and places a copy of just that users raw logs into their hosting accounts home directory.

So either way I guess I would have to write a _vbscript_ that took the users user name and then ran the analog script each time specifying a new user name, new config, new reports dir, etc. for each user - does that seem like the easiest way?

Is there a list of (or are there even any) command line options for the analog.exe program - or is completely from the config file only?


From:  Jeremy Wadsack <[EMAIL PROTECTED]>
Reply-To:  Support for analog web log analyzer <analog-help@lists.meer.net>
To:  Support for analog web log analyzer <analog-help@lists.meer.net>
Subject:  Re: [analog-help] How to configure stats with windows/IIS/vhosts
Date:  Wed, 31 Aug 2005 13:51:26 -0700
Analog creates one report each time you run it. So if you want reports for each user/vitual host, then you will need to run it once for each of those. For efficiency it makes sense to separate out the log files for each user so you are only processing the ones you need for the report.

IIS by default puts log files for each web site into a separate folder (C:\Windows\system32\LogFiles\W3SVC#). If you have a single web site (W3SVC) for all the hosts on your server, then all those will be logged to the same place. Unless you are logging the hostname/virtualhost of the site, there is no way that Analog (or any other tool) can distinguish which lines go to which virtual host. You'll need to go into your IIS admin and change the log file field settings to include this, if you haven't already.

Are there really several *thousand* virtual hosts for a single site? Obviously you'd want to do this with some scripts. Take a look at the HOW-TO section for some examples of how to set up virtual host processing. Also, you might want to look for some tools to split the logfiles apart once you have the virtual hostnames in them. There are a number of such tools (splitlogs comes to mind) in the Unix arena designed for apache. You could probably write a WSH script to do this pretty easily too, especially if the log files are in a known and stable format.

--
Jeremy Wadsack
Seven Simple Machines




Amin Taheri wrote:

>Hi guys,
>
>First, thanks for reading - and any help that anyone can provide.  
>I'll be
>the first to admin that I dont really know how to properly configure
>this
>for what I what to do, and the help files are missing the couple of
>sections
>facing the issue at hand.
>
>So - here is what I am doing.
>
>I am Running a Windows 2003 server using IIS.  The log files are
>seperated
>into days, but all hosts/sites go into one logfile.  There are at
>least 5-10
>thousand virtual hosts per server, with many servers.
>
>I want to run this and generate stats on a per user basis for the
>user to
>have a copy of their stats (daily, monthly, etc) in their home
>directory.
>
>Would it be better to parse the logfile in its entirety, placing
>items in
>the config file for each user to place the report in the users home
>directory?
>
>Or should I parse the logs first - giving each user their own raw
>logs, and
>then process them one by one?
>
>In either case - what is the best way to setup the config files,
>etc.?
>Sorry, I am a complete newb on this :(
>
>Thanks again for any help!
>
>
+------------------------------------------------------------------------
|  TO UNSUBSCRIBE from this list:
|    http://lists.meer.net/mailman/listinfo/analog-help
|
|  Analog Documentation: http://analog.cx/docs/Readme.html
|  List archives:  http://www.analog.cx/docs/mailing.html#listarchives
|  Usenet version: news://news.gmane.org/gmane.comp.web.analog.general
+------------------------------------------------------------------------
+------------------------------------------------------------------------
|  TO UNSUBSCRIBE from this list:
|    http://lists.meer.net/mailman/listinfo/analog-help
|
|  Analog Documentation: http://analog.cx/docs/Readme.html
|  List archives:  http://www.analog.cx/docs/mailing.html#listarchives
|  Usenet version: news://news.gmane.org/gmane.comp.web.analog.general
+------------------------------------------------------------------------

Reply via email to