httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Geurts, G.P.T.M." <g.p.t.m.geu...@i-groep.leidenuniv.nl>
Subject RE: [users@httpd] how to get logs per vhosts ?
Date Tue, 22 Sep 2009 13:01:49 GMT
Using syslog-ng you can log to different facilities and filter
acordingly, or you can filter by contense of the message, so a %v in the
LogFormat enables per vhost logging. 
Don't know anything about the performance impact to the server though...
I know there is a BufferLog directive which enables to buffer a number
of messages...


-----Original Message-----
From: J. Bakshi [mailto:joydeep@infoservices.in] 
Sent: dinsdag 22 september 2009 14:56
To: users@httpd.apache.org
Subject: Re: [users@httpd] how to get logs per vhosts ?

Rich Bowen wrote:
>
> On Sep 22, 2009, at 08:24 , J. Bakshi wrote:
>>
>> Well there is one side effect for the web hosting server.  Generally 
>> these type of servers host a huge no. of vhosts. And the CustomLog 
>> options then creates a serious performance issue.  To cope with that 
>> an alternative is to log all the vhost at a common file and then 
>> break it to different vhost specific logs. I am searching how to do 
>> that. any help in that direction is always welcome.
>
> By adding the %v variable to the beginning of the LogFormat string, 
> you'll have the hostname as the first thing in the log entry. You can 
> then split the logs after the fact using the utility called 
> split-logfile that comes with
> Apache: http://httpd.apache.org/docs/2.2/programs/other.html
>
>

Hello Rich,

My thinking is also flowing on the same direction.  I think we need a
cron to repeatedly generate ( and append ) the log. But still not
sufficient to produce real time log.

>
> --
> Rich Bowen
> rbowen@rcbowen.com <mailto:rbowen@rcbowen.com>
>
>
>


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server
Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message