Re: multiple domains one log file

"Aengus" <[email protected]>
Newsgroups gmane.comp.web.analog.general
Message-ID <001401c87e1f$22e443d0$c2041fac@WC515ALawlo>
Hildreth, Steve <[email protected]> wrote:
> I have one access log that contains information for multiple virtual
> domains.  Can someone help me out with the parameter that will allow
> me to pull out only the information for one (or two domains)?

If each line of the log file includes a field that indicates which "VHOST" (in Analog terminology) that the entry belongs to, and your LOGFORMAT as %v in that position, then VHOSTINCLUDE will tell Analog to only generate a report for the entries that match the specified VHOSTs.

For example:

1.2.3.4 - - server1 [2007/Mar/2008:00:55:43 -0500] "GET /index.html HTTP/1.1" 200

LOGFORMAT (%S %u %j %v [%d/%M/%Y:%h:%n:%t %j] "%j %r %j" %c)


VHOSTINCLUDE server1

Aengus

+------------------------------------------------------------------------
|  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
+------------------------------------------------------------------------
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.