1

Right now I'm storing apache2 logs locally:

ErrorLog     /var/log/apache2/one.error.log
CustomLog    /var/log/apache2/one.access.log common

How can I keep storing the logs locally but also forward them to a local rsyslog (who is pushing data to a remote rsyslog).

MB.
  • 375
  • 2
  • 5
  • 12

1 Answers1

1

Multiple access logs can be created simply by specifying multiple CustomLog directives in the configuration file.

See also piped logs for alternatives with syslog, Apache allows you to pipe logs straight to the stdin of a process:

http://httpd.apache.org/docs/2.2/logs.html#piped

c4urself
  • 5,270
  • 3
  • 25
  • 39