Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

The most important disadvantage of one logfile per virtualhost is the number of open file descriptors. see 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


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.