[syslog-ng] apache logs over syslog-ng sychronized
Martin Schütte
lists at mschuette.name
Wed Sep 3 02:12:57 CEST 2008
Eli Shemer schrieb:
> source s_apachelogs {
> file("/etc/apache2/logs/test/2008-09-02-test.log"); };
IMHO it is better to let Apache log via Syslog in the first place.
Try a httpd.conf line like:
CustomLog "|/usr/bin/logger -p local1.info -t apache" complete
And then have the syslog-ng on the client write them simultaneously to
the server and to /etc/apache2/logs (using a filter on facility local1).
--
Martin
More information about the syslog-ng
mailing list