Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

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

we have configured syslog/syslog-ng to export Apache logs ton a dedicated log server, for security and log check reasons.

But I want to keep a copy of the error log on Apache server for easy understanding in case of problem. Here is the configuration file

ErrorLog        /space/www/vhost/data/logs/errors.log
ErrorLog        "|/usr/bin/logger -t vhost_error -p"

CustomLog       /space/www/vhost/data/logs/access.log combined
CustomLog       "|/usr/bin/logger -t vhost_access -p" combined

The access.log is on both servers (apache one and log one), but the errors.log is only on the log server. I don't figure out why. Maybe I can configure syslog on the Apache server to write local log AND send it to the log server?

share|improve this question
up vote 3 down vote accepted

The ErrorLog directive can not be used multiple times.

You should configure syslog to keep a local copy.

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.