Julia Jacobs ([EMAIL PROTECTED]; Monday, June 24, 2002 5:39 PM):
> So there's no way to get separate .dat files for each Virtual Host
> with one analog.cfg if my LogFormat is:
> LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\""
> combined
> LogFormat "%h %l %u %t \"%r\" %>s %b" common
> LogFormat "%{Referer}i -> %U" referer
> LogFormat "%{User-agent}i" agent
> (combined, as stated in my httpd.conf)
> Bummer. Webalizer, AWStats, they have all failed me!
It's not the software that failed, it's your setup. There is no way
for the software (or you or I for that matter) to know which requests
were made at which virtual host unless that information is in the log
file or each site has it's own log file.
You mentioned that the lines include the web site, but that was the
referrer, not the requests. If you filtered the lines based on the
referrer, you'd still miss all the requests that came from other sites
or that users typed in by hand. And even then, it's possible that a
given site on your server could refer to another and then your guess
of virtual host, based on the host name in the referrer would be
incorrect.
> If I change my LogFormat to include a %v and Virtual Host containers
> to output separate logfiles, how do I include my old referer and
> access logs in my Virtual Reports? Are their any handy tools that
> will split logs into Analog Reports by Virtual Host even when the
> logs have no %v in them?
You can change your log format to include the virtual host details in
your Apache config, and then set up Analog to process them (you'll
need an APACHELOGFORMAT line matching the LogFormat spec). Or, you
could put a CustomLog line in each Virtual Host section of your Apache
config to have them each log to a separate file. You don't need both.
The first is less work for the system when running the web sites, but
may be more work for Analog when building reports.
Because of the problems described above there are no tools that can
split the logs without virtual host information. Once the information
is in there, there a plethora tools that can do that (including
several called 'splitlogs'). If you are at all handy with Perl, it's
simple to write for a given log format. In fact you could probably do
it with grep and a few command-line tools.
--
Jeremy Wadsack
Wadsack-Allen Digital Group
+------------------------------------------------------------------------
| This is the analog-help mailing list. To unsubscribe from this
| mailing list, go to
| http://lists.isite.net/listgate/analog-help/unsubscribe.html
|
| List archives are available at
| http://www.mail-archive.com/[email protected]/
| http://lists.isite.net/listgate/analog-help/archives/
| http://www.tallylist.com/archives/index.cfm/mlist.7
+------------------------------------------------------------------------