Summary.Net Archives
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Summary-Talk] Configuring Virtual Domains



I like to put the domain name in the second position. "%l", the remote
login name, has been disabled for years (because of security concerns).
If you put the host name there the log file will still be able to be
read by any log analysis program, they will just skip over the host
name. The Apache format for this would be:

%h %{Host}i %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"

the Summary "User log format definition" for this layout is:

HOST DOMAIN USER DATE-CLF FULL-REQUEST STATUS BYTES REFERER AGENT

It is also common to add the host name at the end of the line:

%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %{Host}i
HOST SKIP USER DATE-CLF FULL-REQUEST STATUS BYTES REFERER AGENT DOMAIN


It is fairly simple to roll logs into sub-folders. If rotation into
sub-folders doesn't happen automatically, you will need to configure
your log rotation program to do it for you. The details depend on which
log rotation program you are using.

Good Luck
Jason


Kerry Brys wrote:
> I want to use Method #2 for my virtual domains and I see I need to add
> %{HOST}I to my log string but where does it go? Does it matter?
> 
> If I donšt use Method #2 and go with #4 is there a way to get rolled 
> logs into the subfolders.

-- 
Jason@Summary.Net
--
Dr. Seuss books . . . can be read and enjoyed on several levels. For
example, 'One Fish Two Fish, Red Fish Blue Fish' can be deconstructed
as a searing indictment of the narrow-minded binary counting system.
    -- Peter van der Linden, Expert C Programming, Deep C Secrets

-- 
Jason@Summary.Net
--
Dr. Seuss books . . . can be read and enjoyed on several levels. For
example, 'One Fish Two Fish, Red Fish Blue Fish' can be deconstructed
as a searing indictment of the narrow-minded binary counting system.
   -- Peter van der Linden, Expert C Programming, Deep C Secrets

-------------
Go to <http://summary.net/list.html> to update subscription info.