1

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?

Steve

1 Answer 1

1

You can use rsyslog, see http://wiki.rsyslog.com/index.php/Working_Apache_and_Rsyslog_configuration

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 (http://www.stunnel.org/).

1
  • Thanks Oscar, that looks like a very good solution. I will investigate further. Steve. Commented Aug 11, 2010 at 10:30

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.