Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Currently we have 200+ virtualhosts setup and they have separate log files. I'm wondering what the advantages/disadvantages are of having a single log file and what the advantages/disadvantages of our current setup is (multiple log files for each virtualhost).

share|improve this question

2 Answers 2

The most important disadvantage of one logfile per virtualhost is the number of open file descriptors. see httpd.apache.org/docs/2.0/vhosts/fd-limits.html for a description of the problem and possible alternatives.

share|improve this answer

One advantage to separate files per-vhost is to be able know which requests come from which host without having to deviate from the standard NCSA log format.

With everything logging to one file, the standard practice is to add a %v to the beginning of the log format; this may choke some log parsing tools which don't understand it, as well as making it a bigger pain to dig for info (grep commands will need to be expanded to match the vhost as well) directly in the log file.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.