[users@httpd] Filtering/Interception Error log strings

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



hi,

I want to use apache to support 2000+ virt-hosts and log errors
seperately for each virt-host. 

But apache opens and maintains fd's for each error_log and access_log.
And hence the select syscall ( which has a fd_set of max 1024 fds)
fails .. and hence apache fails to start up.

Then i tried to pipe access log .. and filter it to seperate files
(depending upon which virthost it belongs to). But error log can't be
filtered because it doen't contain sufficient information.

Now , i want to write a module ( or if possible some other way) so that
i can intercept error log strings and depending upon the
request->server->server_hostname  .. filter it to different files.

I read in src/httd-2.0.46/CHANGES +3274
  *) Add a new request hook, error_log.  This phase allows modules
     to act on the error log string _after_ it has been written
     to the error log.  The goal for this hook is to allow monitoring
     modules to send the error string to the monitoring agent.
     [Ryan Bloom]

Could anyone tell me nore about this hook ?

Thanx,
Jaspreet


---------------------------------------------------------------------
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@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux