Re: How to use the Log Format

Edward Rudd <[email protected]> Thu, 17 Jun 2004 21:34:00 -0500
Newsgroups gmane.comp.apache.mod-log-sql
Organization OutOfOrder.cc
Message-ID <[email protected]>
Chris,

On Thu, 2004-06-17 at 20:48, Christopher Chua wrote: 
> I wish to use the LogSQLTransferLogFormat with non-canonical virtualhost
> names because I am using the mass virtualhosting feature in apache but i
> want every virtualhost to be specified in a single table.

Are you using IP based hosting instead of Namebasedhosting then?

> I tried using V to replace v but it stopped logging the virtualhost.
> 
> And what if i needed to add other information from the header other than
> those mentioned in the manual? Is Referrer a valid header?

To log the Referrer specify R. And there is no capitol V, only a
lowercase v which logs the virtualhost. You can't use the documentation
from mod_log_config for logformat, as mod_log_sql does not use those
logformat names.. you need to use the table in the mod_log_sql manual.

http://www.outoforder.cc/projects/apache/mod_log_sql/docs/node4.html#SECTION000461700000000000000

And currently there is no format letter to log the canonical hostname. I
can add it in the next release I make, though. As I know this is an
issue that has been brought up to me before about the massvirtualhosting
flag and multiple aliases for a single website, I will work on finding a
solution soon.

-- 
Edward Rudd <[email protected]>
Website http://www.outoforder.cc/

_______________________________________________
Download the latest version at http://www.outoforder.cc/projects/apache/mod_log_sql/

To unsubscribe send an e-mail to 
mod_log_sql-unsubscribe-7qY7E20V6GW73k+5HYS8LQqVMODqnSLI@public.gmane.org
signature.asc (application/pgp-signature, 189 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)

iD8DBQBA0lSXvwMxRUUct20RAtJzAJ4/s4PfZRJkOWqeLeZJYsLJ72gtOQCcDGz7
ro22kxWzrysvAYiu5WRT6KM=
=msNU
-----END PGP SIGNATURE-----