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.

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 local6.info"

CustomLog       /space/www/vhost/data/logs/access.log combined
CustomLog       "|/usr/bin/logger -t vhost_access -p local6.info" 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

1 Answer 1

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

 
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.