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

I am investigating the possibility of logging Apache access & error_logs into one central repository, as opposed to each server having their own log files.

Does anyone have any ideas or best practises on how to do this? Anyone can push me in the right direction?


share|improve this question
up vote 1 down vote accepted

You can use rsyslog, see

To log everything to a remote server put in /etc/rsyslog.d/0X-remote-server.conf:

*.* @<IP-address remote server>

Then on the remote server you can use for instance syslog-ng with filters to put all logging in seperate directories (i.e. per VirtualHost).

If you log over the network it's wise to encrypt your data. You can use stunnel for this (

share|improve this answer
Thanks Oscar, that looks like a very good solution. I will investigate further. Steve. – Steve Griff Aug 11 '10 at 10:30

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.