Re: httpd vhost centralized logging

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

 



Hi Jonas,

Thanks for your response. What is your configuration for ErrorLog on all vhost?

Regards,
James

On Fri, May 28, 2010 at 10:57 PM, Jonas Eckerman <jonas_lists@xxxxxxxxx> wrote:
On 2010-05-24 11:16, James Corteciano wrote:

I'm thinking to use logger tool for every httpd services running but
it's not an ideal because it takes more resources in server. Let say
there are 50 vhost in a server, then 100 logger apps will be running
because 2 logger per vhost (ErrorLog & CustomLog).

Separate loggers for each main HTTP server is not the same as separate loggers for each *virtual* host.

Set up the logging in the main httpd config and you can have all vhosts use the same logger instance(s).

I currently have this in a reverse proxy with 65 vhosts:

CustomLog "|/usr/bin/logger -h 10.0.7.12 -t httpd -p local4.notice" vhostcombinedsyslog
CustomLog "|/usr/bin/logger -h 10.0.7.12 -t httpd -p local4.notice" vhostnumsyslognc

Those two lines results in a total of two logger apps running.

Regards
/Jonas
--
Jonas Eckerman
Fruktträdet & Förbundet Sveriges Dövblinda
http://www.fsdb.org/
http://www.frukt.org/
http://whatever.frukt.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@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