httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "J. Bakshi" <joyd...@infoservices.in>
Subject Re: [users@httpd] how to get logs per vhosts ?
Date Tue, 22 Sep 2009 12:52:45 GMT
Serge Fonville wrote:
> Hi,
>  
> I'd consider logging to a database instead
>  
> Read into mod_log_mysql
> http://www.howtoforge.com/apache2-logging-to-a-mysql-database-with-mod_log_sql-on-debian-etch
> That should get you started.
> It might require som fiddling...
>  
> HTH

Hello,

Thanks for your feedback. I am trying to achieve the hosting company
style logging i.e.

1. per vhost base access and error log
2. awstat should work with the access logs.
3. Finally the performance should not fall due to huge no. of vhosts.

I think logging to a database might conflict with #3




>  
> Regards,
>  
> Serge Fonville
> On Tue, Sep 22, 2009 at 2:24 PM, J. Bakshi <joydeep@infoservices.in
> <mailto:joydeep@infoservices.in>> wrote:
>
>     J. Bakshi wrote:
>     > Geurts, G.P.T.M. wrote:
>     >
>     >> Hello mr Bakshi,
>     >> You can define per vhost accesslogs by simply defining them.
>     >> If your vhost defenition contains a "CustomLog /var/log/logfile
>     >> logformat" directive, it will log all accesslog using LogFormat
>     >> logformat
>     >>  to the file /var/log/logfile for that vhost.
>     >> Accesslogs not belonging to that vhost go to you global defined
>     >> accesslog
>     >>
>     >>
>     >
>     > Hello Sir,
>     >
>     > Thanks a lot for your prompt solution and clarification.
>     > I'll do it accordingly.
>     > Once again thanking you.
>     >
>
>     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.
>
>     thanks
>
>     >
>     >
>     >> -----Original Message-----
>     >> From: J. Bakshi [mailto:joydeep@infoservices.in
>     <mailto:joydeep@infoservices.in>]
>     >> Sent: dinsdag 22 september 2009 14:00
>     >> To: users@httpd.apache.org <mailto:users@httpd.apache.org>
>     >> Subject: [users@httpd] how to get logs per vhosts ?
>     >>
>     >> Hello list,
>     >>
>     >> In my linux server ( opensuse 11) , I am running apache with some
>     >> vhosts.  All the virtual-hosts are running well.  But the
>     apache log
>     >> file is common for all the virtual hosts ; that is
>     >> /etc/var/log/apache/access.log.  How can I get per vhost log so
>     that I
>     >> can use awstat  as well as monitor log for concerned vhost only ?
>     >>
>     >> thanks.
>     >>
>     >>
>     ---------------------------------------------------------------------
>     >> 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
>     <mailto:users-unsubscribe@httpd.apache.org>
>     >>    "   from the digest:
>     users-digest-unsubscribe@httpd.apache.org
>     <mailto:users-digest-unsubscribe@httpd.apache.org>
>     >> For additional commands, e-mail: users-help@httpd.apache.org
>     <mailto: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
>     <mailto:users-unsubscribe@httpd.apache.org>
>     >>    "   from the digest:
>     users-digest-unsubscribe@httpd.apache.org
>     <mailto:users-digest-unsubscribe@httpd.apache.org>
>     >> For additional commands, e-mail: users-help@httpd.apache.org
>     <mailto: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
>     <mailto:users-unsubscribe@httpd.apache.org>
>     >    "   from the digest:
>     users-digest-unsubscribe@httpd.apache.org
>     <mailto:users-digest-unsubscribe@httpd.apache.org>
>     > For additional commands, e-mail: users-help@httpd.apache.org
>     <mailto: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
>     <mailto:users-unsubscribe@httpd.apache.org>
>       "   from the digest: users-digest-unsubscribe@httpd.apache.org
>     <mailto:users-digest-unsubscribe@httpd.apache.org>
>     For additional commands, e-mail: users-help@httpd.apache.org
>     <mailto: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