ErorrLog for a few hundred vhosts

This is a discussion on ErorrLog for a few hundred vhosts within the Apache Web Server forums, part of the Web Server and Related Forums category; HI, I want to sort the ErrorLog for my vhosts (ca. 700, name based), cool would a solution to have ...


Go Back   Usenet Forums > Web Server and Related Forums > Apache Web Server

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-19-2007
tom lehmann
 
Posts: n/a
Default ErorrLog for a few hundred vhosts

HI,
I want to sort the ErrorLog for my vhosts (ca. 700, name based),
cool would a solution to have a single file for every vhost.

Server is Apache2, debian Linux.

apache2.conf
[...]
# Log vhosts
LogFormat "%v %h %l %u %t \"%r\" %>s %b" vhost
CustomLog /var/log/apache2/logs/multiple_vhost_log vhost

# error log.
ErrorLog /var/log/apache2/error.log
[...]

Work fine with "split-logfile" to generate a single file for every
vhost, but only access_log.

That would be my question, if this is possible for the ErrorLog?
Or write a higher level of ErrorLog and then scripting it with the
shell or perl.

To write an ErrorLog-directive in any vhost wont work, the apache2
wouldn't start (file descriptor limits).

Any ideas?


Tom

  #2 (permalink)  
Old 02-19-2007
tom lehmann
 
Posts: n/a
Default Re: ErorrLog for a few hundred vhosts

On Mon, 19 Feb 2007 17:07:55 +0100, Davide Bianchi
<davideyeahsure@onlyforfun.net> wrote:

hi Davide,

>So if you can figure out for which vhost each line is, then you can
>split the single error log.


That was my question, if I could log that for any vhost.
RTFM carefully but couldnt find anything about.


>Well, you could increase the number of file descriptors available.


I found this [1], before posting my article, but i am wondering, that
there was no other little workaround for my ErrorLog problem. Thanx.


Tom

[1] http://httpd.apache.org/docs/misc/perf-tuning.html
 


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 11:28 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0