Re: [users@httpd] Global and virtual host log configuration

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

 



On 3/24/06, Terry Burton <tez@xxxxxxxxxxxxxxxxx> wrote:
> Hi,
>
> I am running hundreds of virtual hosts on httpd server and each
> virtual host successfully writes its own access log file to an
> appropriate place.
>
> In addition to these virtual host logs, I would also like to generate
> a global access log to a pipe (for logging to MySQL). Adding an
> additional CustomLog directive to each virtual host launches a logger
> program (attached to the pipe) for _each_virtual host_ which is
> unacceptable.
>
> In a typical configuration httpd overrides the main CustomLog settings
> with those found in virtual hosts. What I need is a way to specify the
> main CustomLog such that it is not overridden, but rather
> complemented, by further CustomLog directives in the virtual hosts.
> This way I have a _single_pipe_logger_ capturing everything, as well
> as the usual virtual host log files.

Can't be done with mod_log_config without modifying the code.

One solution would be to have two global CustomLogs: one piped to
mysql and the other piped to a program that splits the logs for each
vhost.

Joshua.

---------------------------------------------------------------------
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